Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for GOROOT (0.23 sec)

  1. src/archive/zip/testdata/readme.zip

    Binary Distribution Notes If you have just untarred a binary Go distribution, you need to set the environment variable $GOROOT to the full path of the go directory (the one containing this README). You can omit the variable if you unpack it into /usr/local/go, or if you rebuild from sources by running all.bash (see doc/install.html). You should also add the Go binary directory $GOROOT/bin to your shell's path. For example, if you extracted the tar file into $HOME/go, you might put the following in your...
    ZIP Archive
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Sat Jul 11 14:36:33 GMT 2015
    - 1.8K bytes
    - Viewed (0)
  2. src/clean.bash

    # Use of this source code is governed by a BSD-style
    # license that can be found in the LICENSE file.
    
    set -e
    
    if [ ! -f run.bash ]; then
    	echo 'clean.bash must be run from $GOROOT/src' 1>&2
    	exit 1
    fi
    export GOROOT="$(cd .. && pwd)"
    
    gobin="${GOROOT}"/bin
    if ! "$gobin"/go help >/dev/null 2>&1; then
    	echo 'cannot find go command; nothing to clean' >&2
    	exit 1
    fi
    
    "$gobin/go" clean -i std
    "$gobin/go" tool dist clean
    Shell Script
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Feb 26 21:54:09 GMT 2020
    - 518 bytes
    - Viewed (0)
  3. doc/next/3-tools.md

    ## Tools {#tools}
    
    ### Go command {#go-command}
    
    Setting the `GOROOT_FINAL` environment variable no longer has an effect
    ([#62047](https://go.dev/issue/62047)).
    Distributions that install the `go` command to a location other than
    `$GOROOT/bin/go` should install a symlink instead of relocating
    or copying the `go` binary.
    
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Mar 14 16:58:10 GMT 2024
    - 339 bytes
    - Viewed (0)
  4. misc/go_android_exec/main.go

    		gorootPath = runtime.GOROOT()
    		if gorootPath != "" {
    			return
    		}
    
    		// runtime.GOROOT is empty — perhaps go_android_exec was built with
    		// -trimpath and GOROOT is unset. Try 'go env GOROOT' as a fallback,
    		// assuming that the 'go' command in $PATH is the correct one.
    
    		cmd := exec.Command("go", "env", "GOROOT")
    		cmd.Stderr = os.Stderr
    		out, err := cmd.Output()
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  5. buildscripts/gen-ldflags.go

    	ldflagsStr += " -X github.com/minio/minio/cmd.ShortCommitID=" + commitID()[:12]
    	ldflagsStr += " -X github.com/minio/minio/cmd.GOPATH=" + os.Getenv("GOPATH")
    	ldflagsStr += " -X github.com/minio/minio/cmd.GOROOT=" + os.Getenv("GOROOT")
    	return ldflagsStr
    }
    
    // genReleaseTag prints release tag to the console for easy git tagging.
    func releaseTag(version string) (string, time.Time) {
    	relPrefix := "DEVELOPMENT"
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jun 16 23:10:48 GMT 2022
    - 3.3K bytes
    - Viewed (0)
  6. src/cmd/api/api_test.go

    )
    
    var flagCheck = flag.Bool("check", false, "run API checks")
    
    func TestMain(m *testing.M) {
    	flag.Parse()
    	for _, c := range contexts {
    		c.Compiler = build.Default.Compiler
    	}
    	build.Default.GOROOT = testenv.GOROOT(nil)
    
    	os.Exit(m.Run())
    }
    
    var (
    	updateGolden = flag.Bool("updategolden", false, "update golden files")
    )
    
    func TestGolden(t *testing.T) {
    	if *flagCheck {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Jan 04 17:31:12 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  7. misc/ios/README

    	GOOS=ios GOARCH=amd64 CGO_ENABLED=1 CC=$(go env GOROOT)/misc/ios/clangwrap.sh go build
    
    Setting CC is not necessary if the toolchain is built with CC_FOR_TARGET set.
    
    To use the go tool to run individual programs and tests, put $GOROOT/bin into PATH to ensure
    the go_ios_$GOARCH_exec wrapper is found. For example, to run the archive/tar tests:
    
    	export PATH=$GOROOT/bin:$PATH
    	GOOS=ios GOARCH=amd64 CGO_ENABLED=1 go test archive/tar
    
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Dec 29 21:49:26 GMT 2020
    - 2.7K bytes
    - Viewed (0)
  8. internal/logger/logger.go

    	}
    
    	goPathList = strings.Split(goPath, pathSeparator)
    	goRootList = strings.Split(goRoot, pathSeparator)
    	defaultgoPathList = strings.Split(build.Default.GOPATH, pathSeparator)
    	defaultgoRootList = strings.Split(build.Default.GOROOT, pathSeparator)
    
    	// Add trim string "{GOROOT}/src/" into trimStrings
    	trimStrings = []string{filepath.Join(runtime.GOROOT(), "src") + string(filepath.Separator)}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  9. src/buildall.bash

    if [ ! -f run.bash ]; then
    	echo 'buildall.bash must be run from $GOROOT/src' 1>&2
    	exit 1
    fi
    
    sete=false
    if [ "$1" = "-e" ]; then
    	sete=true
    	shift
    fi
    
    if [ "$sete" = true ]; then
    	set -e
    fi
    
    pattern="$1"
    if [ "$pattern" = "" ]; then
    	pattern=.
    fi
    
    ./make.bash || exit 1
    GOROOT="$(cd .. && pwd)"
    
    gettargets() {
    	../bin/go tool dist list | sed -e 's|/|-|' |
    Shell Script
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Jul 27 17:32:27 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  10. cmd/build-constants.go

    // DO NOT EDIT THIS FILE DIRECTLY. These are build-time constants
    // set through ‘buildscripts/gen-ldflags.go’.
    var (
    	// GOPATH - GOPATH value at the time of build.
    	GOPATH = ""
    
    	// GOROOT - GOROOT value at the time of build.
    	GOROOT = ""
    
    	// Version - version time.RFC3339.
    	Version = "DEVELOPMENT.GOGET"
    
    	// ReleaseTag - release tag in TAG.%Y-%m-%dT%H-%M-%SZ.
    	ReleaseTag = "DEVELOPMENT.GOGET"
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Mar 12 00:54:37 GMT 2024
    - 2.2K bytes
    - Viewed (0)
Back to top