Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for GOTMPDIR (0.12 sec)

  1. src/cmd/go/testdata/script/build_relative_tmpdir.txt

    env GO111MODULE=off
    
    # If GOTMPDIR is relative, 'go build' should derive an absolute $WORK directory.
    cd $WORK
    mkdir tmp
    env GOTMPDIR=tmp
    go build -work a
    stderr 'WORK='$WORK
    
    # Similarly if TMP/TMPDIR is relative.
    env GOTMPDIR=
    env TMP=tmp    # Windows
    env TMPDIR=tmp # Unix
    go build -work a
    stderr 'WORK='$WORK
    
    -- a/a.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:18:16 UTC 2022
    - 337 bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/env_write.txt

    # go env -w rejects invalid GOTMPDIR values
    ! go env -w GOTMPDIR=x
    stderr 'go: GOTMPDIR must be an absolute path'
    
    # go env -w should accept absolute GOTMPDIR value
    # and should not create it
    [GOOS:windows] go env -w GOTMPDIR=$WORK\x\y\z
    [!GOOS:windows] go env -w GOTMPDIR=$WORK/x/y/z
    ! exists $WORK/x/y/z
    # we should be able to clear an env
    go env -u GOTMPDIR
    go env GOTMPDIR
    stdout ^$
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 18:42:31 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/build_GOTMPDIR.txt

    [!GOOS:windows] env GOCACHE=$WORK/gocache
    [GOOS:windows] env GOCACHE=$WORK\gocache
    
    # 'go build' should use GOTMPDIR if set.
    [!GOOS:windows] env GOTMPDIR=$WORK/my-favorite-tmpdir
    [GOOS:windows] env GOTMPDIR=$WORK\my-favorite-tmpdir
    mkdir $GOTMPDIR
    go build -x hello.go
    stderr ^WORK=.*my-favorite-tmpdir
    
    # Make GOTMPDIR a regular file. This prevents the creation of work directories,
    # so we can check that certain commands don't create them.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  4. src/internal/cfg/cfg.go

    	GOGCCFLAGS
    	GOHOSTARCH
    	GOHOSTOS
    	GOINSECURE
    	GOMIPS
    	GOMIPS64
    	GOMODCACHE
    	GONOPROXY
    	GONOSUMDB
    	GOOS
    	GOPATH
    	GOPPC64
    	GOPRIVATE
    	GOPROXY
    	GORISCV64
    	GOROOT
    	GOSUMDB
    	GOTMPDIR
    	GOTOOLCHAIN
    	GOTOOLDIR
    	GOVCS
    	GOWASM
    	GOWORK
    	GO_EXTLINK_ENABLED
    	PKG_CONFIG
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 01:33:19 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  5. .github/ISSUE_TEMPLATE/00-bug.yml

            GOOS="darwin"
            GOPATH="/Users/gopher/go"
            GOPRIVATE=""
            GOPROXY="https://proxy.golang.org,direct"
            GOROOT="/usr/local/go"
            GOSUMDB="sum.golang.org"
            GOTMPDIR=""
            GOTOOLDIR="/usr/local/go/pkg/tool/darwin_arm64"
            GOVCS=""
            GOVERSION="go1.20.7"
            GCCGO="gccgo"
            AR="ar"
            CC="clang"
            CXX="clang++"
            CGO_ENABLED="1"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 04 23:31:17 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  6. src/cmd/go/internal/envcmd/env.go

    		{Name: "GOPROXY", Value: cfg.GOPROXY, Changed: cfg.GOPROXYChanged},
    		{Name: "GOROOT", Value: cfg.GOROOT},
    		{Name: "GOSUMDB", Value: cfg.GOSUMDB, Changed: cfg.GOSUMDBChanged},
    		{Name: "GOTMPDIR", Value: cfg.Getenv("GOTMPDIR")},
    		{Name: "GOTOOLCHAIN"},
    		{Name: "GOTOOLDIR", Value: build.ToolDir},
    		{Name: "GOVCS", Value: cfg.GOVCS},
    		{Name: "GOVERSION", Value: runtime.Version()},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  7. src/cmd/dist/util.go

    	}
    	return names
    }
    
    // xworkdir creates a new temporary directory to hold object files
    // and returns the name of that directory.
    func xworkdir() string {
    	name, err := os.MkdirTemp(os.Getenv("GOTMPDIR"), "go-tool-dist-")
    	if err != nil {
    		fatalf("%v", err)
    	}
    	return name
    }
    
    // fatalf prints an error message to standard error and exits.
    func fatalf(format string, args ...interface{}) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 17:50:29 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  8. src/cmd/dist/build.go

    	xprintf(format, "GOHOSTOS", gohostos)
    	xprintf(format, "GOOS", goos)
    	xprintf(format, "GOPROXY", os.Getenv("GOPROXY"))
    	xprintf(format, "GOROOT", goroot)
    	xprintf(format, "GOTMPDIR", os.Getenv("GOTMPDIR"))
    	xprintf(format, "GOTOOLDIR", tooldir)
    	if goarch == "arm" {
    		xprintf(format, "GOARM", goarm)
    	}
    	if goarch == "arm64" {
    		xprintf(format, "GOARM64", goarm64)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  9. src/cmd/go/internal/work/action.go

    		b.WorkDir = workDir
    	} else if cfg.BuildN {
    		b.WorkDir = "$WORK"
    	} else {
    		if !buildInitStarted {
    			panic("internal error: NewBuilder called before BuildInit")
    		}
    		tmp, err := os.MkdirTemp(cfg.Getenv("GOTMPDIR"), "go-build")
    		if err != nil {
    			base.Fatalf("go: creating work dir: %v", err)
    		}
    		if !filepath.IsAbs(tmp) {
    			abs, err := filepath.Abs(tmp)
    			if err != nil {
    				os.RemoveAll(tmp)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:39:17 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  10. src/cmd/go/internal/help/helpdoc.go

    		The name of checksum database to use and optionally its public key and
    		URL. See https://golang.org/ref/mod#authenticating.
    	GOTOOLCHAIN
    		Controls which Go toolchain is used. See https://go.dev/doc/toolchain.
    	GOTMPDIR
    		The directory where the go command will write
    		temporary source files, packages, and binaries.
    	GOVCS
    		Lists version control commands that may be used with matching servers.
    		See 'go help vcs'.
    	GOWORK
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 36.3K bytes
    - Viewed (0)
Back to top