/external/toolchain-utils/go/ |
push_goroot | 4 # This script copies a locally built GOROOT to a remote device. 10 # It uses "target_tmpdir" to figure out where to copy GOROOT on the device. 14 goroot="$(target_tmpdir)/go" 18 target_sh ${target} "rm -rf ${goroot}" 19 target_sh ${target} "mkdir -p ${goroot}/pkg" 24 target_cp "pkg/${pkgdir}_shared" ${target}:${goroot}/pkg 25 target_sh ${target} "ln -s ${pkgdir}_shared ${goroot}/pkg/${pkgdir}" 27 target_cp "pkg/${pkgdir}" ${target}:${goroot}/pkg 30 target_cp "src" ${target}:${goroot} 31 target_cp "lib" ${target}:${goroot} [all...] |
go_target_exec | 24 # If current directory is inside GOROOT, then execute the binary in the 25 # corresponding directory inside GOROOT on the device. 27 goroot="$(go_${target} env GOROOT)" 28 if [[ "${PWD}" == ${goroot}/src/* ]] 30 targetdir="${tmpdir}/go/src/${PWD#${goroot}/src/}" 33 # Set GOROOT, and forward some environment variables to the remote shell. 34 vars="GOROOT=${tmpdir}/go"
|
/prebuilts/go/darwin-x86/misc/android/ |
cleaner.go | 5 // Cleaner removes anything from /data/local/tmp/goroot not on a builtin list. 17 const goroot = "/data/local/tmp/goroot" 20 expect[filepath.Join(goroot, f)] = true 23 err := filepath.Walk(goroot, func(path string, info os.FileInfo, err error) error {
|
/prebuilts/go/linux-x86/misc/android/ |
cleaner.go | 5 // Cleaner removes anything from /data/local/tmp/goroot not on a builtin list. 17 const goroot = "/data/local/tmp/goroot" 20 expect[filepath.Join(goroot, f)] = true 23 err := filepath.Walk(goroot, func(path string, info os.FileInfo, err error) error {
|
/prebuilts/go/darwin-x86/src/ |
make.rc | 34 echo 'make.rc must be run from $GOROOT/src' >[1=2] 51 GOROOT = `{cd .. && pwd} 57 goroot = `{GOROOT='' $go_exe env GOROOT} 58 if(! ~ $goroot $GOROOT){ 59 GOROOT_BOOTSTRAP = $goroot 69 if(~ $GOROOT_BOOTSTRAP $GOROOT){ 70 echo 'ERROR: $GOROOT_BOOTSTRAP must not be set to $GOROOT' >[1=2 [all...] |
make.bash | 60 # If $GOROOT_BOOTSTRAP/bin/go is missing, $(go env GOROOT) is 68 echo 'make.bash must be run from $GOROOT/src' 1>&2 141 export GOROOT="$(cd .. && pwd)" 144 goroot=$(GOROOT='' "$go_exe" env GOROOT) 145 if [ "$goroot" != "$GOROOT" ]; then 146 GOROOT_BOOTSTRAP=$goroot 159 if [ "$GOROOT_BOOTSTRAP" = "$GOROOT" ]; the [all...] |
androidtest.bash | 7 # The compiler runs locally, then a copy of the GOROOT is pushed to a 14 echo 'androidtest.bash must be run from $GOROOT/src' 1>&2 44 export GOROOT=$(dirname $(pwd)) 45 export PATH=$GOROOT/bin:$PATH 63 # Push GOROOT to target device. 68 # /data/local/tmp/goroot. The adb sync command does not follow 71 FAKE_GOROOT=$ANDROID_PRODUCT_OUT/data/local/tmp/goroot 74 cp -a "${GOROOT}/src" "${FAKE_GOROOT}/" 75 cp -a "${GOROOT}/test" "${FAKE_GOROOT}/" 76 cp -a "${GOROOT}/lib" "${FAKE_GOROOT}/ [all...] |
/prebuilts/go/linux-x86/src/ |
make.rc | 34 echo 'make.rc must be run from $GOROOT/src' >[1=2] 51 GOROOT = `{cd .. && pwd} 57 goroot = `{GOROOT='' $go_exe env GOROOT} 58 if(! ~ $goroot $GOROOT){ 59 GOROOT_BOOTSTRAP = $goroot 69 if(~ $GOROOT_BOOTSTRAP $GOROOT){ 70 echo 'ERROR: $GOROOT_BOOTSTRAP must not be set to $GOROOT' >[1=2 [all...] |
make.bash | 60 # If $GOROOT_BOOTSTRAP/bin/go is missing, $(go env GOROOT) is 68 echo 'make.bash must be run from $GOROOT/src' 1>&2 141 export GOROOT="$(cd .. && pwd)" 144 goroot=$(GOROOT='' "$go_exe" env GOROOT) 145 if [ "$goroot" != "$GOROOT" ]; then 146 GOROOT_BOOTSTRAP=$goroot 159 if [ "$GOROOT_BOOTSTRAP" = "$GOROOT" ]; the [all...] |
androidtest.bash | 7 # The compiler runs locally, then a copy of the GOROOT is pushed to a 14 echo 'androidtest.bash must be run from $GOROOT/src' 1>&2 44 export GOROOT=$(dirname $(pwd)) 45 export PATH=$GOROOT/bin:$PATH 63 # Push GOROOT to target device. 68 # /data/local/tmp/goroot. The adb sync command does not follow 71 FAKE_GOROOT=$ANDROID_PRODUCT_OUT/data/local/tmp/goroot 74 cp -a "${GOROOT}/src" "${FAKE_GOROOT}/" 75 cp -a "${GOROOT}/test" "${FAKE_GOROOT}/" 76 cp -a "${GOROOT}/lib" "${FAKE_GOROOT}/ [all...] |
/prebuilts/go/darwin-x86/src/cmd/api/ |
run.go | 26 path := filepath.Join(runtime.GOROOT(), "bin", "go"+exeSuffix) 33 var goroot string var 37 goroot = os.Getenv("GOROOT") // should be set by run.{bash,bat} 38 if goroot == "" { 39 log.Fatal("No $GOROOT set.") 42 apiDir := filepath.Join(goroot, "api")
|
/prebuilts/go/linux-x86/src/cmd/api/ |
run.go | 26 path := filepath.Join(runtime.GOROOT(), "bin", "go"+exeSuffix) 33 var goroot string var 37 goroot = os.Getenv("GOROOT") // should be set by run.{bash,bat} 38 if goroot == "" { 39 log.Fatal("No $GOROOT set.") 42 apiDir := filepath.Join(goroot, "api")
|
/external/skia/infra/bots/recipe_modules/infra/ |
api.py | 16 def goroot(self): member in class:InfraApi 21 return self.goroot.join('bin') 31 'GOROOT': self.goroot,
|
/external/skqp/infra/bots/recipe_modules/infra/ |
api.py | 16 def goroot(self): member in class:InfraApi 21 return self.goroot.join('bin') 31 'GOROOT': self.goroot,
|
/build/blueprint/bootstrap/ |
config.go | 44 goRoot = bootstrapVariable("goRoot", func() string { 45 goroot := runtime.GOROOT() 48 if relpath, err := filepath.Rel(cwd, goroot); err == nil { 50 goroot = relpath 54 return goroot 57 return "$goRoot/pkg/tool/" + runtime.GOOS + "_" + runtime.GOARCH + "/compile" 60 return "$goRoot/pkg/tool/" + runtime.GOOS + "_" + runtime.GOARCH + "/link"
|
/prebuilts/go/darwin-x86/src/cmd/dist/ |
build.go | 34 goroot string 97 // xinit handles initialization of the various global state, like goroot and goarch. 99 b := os.Getenv("GOROOT") 101 fatalf("$GOROOT must be set") 103 goroot = filepath.Clean(b) 107 b = goroot 113 b = pathf("%s/bin", goroot) 148 if p := pathf("%s/src/all.bash", goroot); !isfile(p) { 149 fatalf("$GOROOT is not set correctly or not exported\n"+ 151 "\t%s does not exist", goroot, p 33 goroot string var [all...] |
buildtool.go | 24 // All directories in this list are relative to and must be below $GOROOT/src. 112 mkzbootstrap(pathf("%s/src/cmd/internal/objabi/zbootstrap.go", goroot)) 114 // Use $GOROOT/pkg/bootstrap as the bootstrap workspace root. 115 // We use a subdirectory of $GOROOT/pkg because that's the 116 // space within $GOROOT where we store all generated objects. 117 // We could use a temporary directory outside $GOROOT instead, 119 workspace := pathf("%s/pkg/bootstrap", goroot) 124 // Copy source code into $GOROOT/pkg/bootstrap and rewrite import paths. 126 src := pathf("%s/src/%s", goroot, dir) 154 // GOROOT points at Go 1.4 GOROOT [all...] |
buildruntime.go | 43 // const defaultGOROOT = <goroot>
|
/prebuilts/go/linux-x86/src/cmd/dist/ |
build.go | 34 goroot string 97 // xinit handles initialization of the various global state, like goroot and goarch. 99 b := os.Getenv("GOROOT") 101 fatalf("$GOROOT must be set") 103 goroot = filepath.Clean(b) 107 b = goroot 113 b = pathf("%s/bin", goroot) 148 if p := pathf("%s/src/all.bash", goroot); !isfile(p) { 149 fatalf("$GOROOT is not set correctly or not exported\n"+ 151 "\t%s does not exist", goroot, p 33 goroot string var [all...] |
buildtool.go | 24 // All directories in this list are relative to and must be below $GOROOT/src. 112 mkzbootstrap(pathf("%s/src/cmd/internal/objabi/zbootstrap.go", goroot)) 114 // Use $GOROOT/pkg/bootstrap as the bootstrap workspace root. 115 // We use a subdirectory of $GOROOT/pkg because that's the 116 // space within $GOROOT where we store all generated objects. 117 // We could use a temporary directory outside $GOROOT instead, 119 workspace := pathf("%s/pkg/bootstrap", goroot) 124 // Copy source code into $GOROOT/pkg/bootstrap and rewrite import paths. 126 src := pathf("%s/src/%s", goroot, dir) 154 // GOROOT points at Go 1.4 GOROOT [all...] |
buildruntime.go | 43 // const defaultGOROOT = <goroot>
|
/prebuilts/go/darwin-x86/src/compress/gzip/ |
issue14937_test.go | 19 // may be in the user's GOROOT (Issue 18604), we only run this test on 24 goroot, err := filepath.EvalSymlinks(runtime.GOROOT()) 26 t.Fatal("error evaluating GOROOT: ", err) 29 err = filepath.Walk(goroot, func(path string, info os.FileInfo, err error) error { 40 t.Skipf("skipping: GOROOT directory not found: %s", runtime.GOROOT()) 42 t.Fatal("error collecting list of .gz files in GOROOT: ", err) 45 t.Fatal("expected to find some .gz files under GOROOT")
|
/prebuilts/go/linux-x86/src/compress/gzip/ |
issue14937_test.go | 19 // may be in the user's GOROOT (Issue 18604), we only run this test on 24 goroot, err := filepath.EvalSymlinks(runtime.GOROOT()) 26 t.Fatal("error evaluating GOROOT: ", err) 29 err = filepath.Walk(goroot, func(path string, info os.FileInfo, err error) error { 40 t.Skipf("skipping: GOROOT directory not found: %s", runtime.GOROOT()) 42 t.Fatal("error collecting list of .gz files in GOROOT: ", err) 45 t.Fatal("expected to find some .gz files under GOROOT")
|
/prebuilts/go/darwin-x86/src/syscall/ |
mksyscall_windows.go | 706 goroot := runtime.GOROOT() 709 goroot = strings.ToLower(goroot) 712 if !strings.HasSuffix(goroot, sep) { 713 goroot += sep 715 return strings.HasPrefix(abspath, goroot), nil
|
/prebuilts/go/linux-x86/src/syscall/ |
mksyscall_windows.go | 706 goroot := runtime.GOROOT() 709 goroot = strings.ToLower(goroot) 712 if !strings.HasSuffix(goroot, sep) { 713 goroot += sep 715 return strings.HasPrefix(abspath, goroot), nil
|