Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 384 for gopack (0.2 sec)

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

    [short] skip
    
    # Allow (cached) downloads for -mod=readonly.
    env GO111MODULE=on
    env GOPATH=$WORK/gopath1
    cd $WORK/x
    go mod edit -fmt
    go list -mod=readonly
    env GOPROXY=file:///nonexist
    go list
    grep v1.5.1 $GOPATH/pkg/mod/cache/download/rsc.io/quote/@v/list
    
    # Use download cache as file:/// proxy.
    env GOPATH=$WORK/gopath2
    [GOOS:windows] env GOPROXY=file:///C:/nonexist
    [!GOOS:windows] env GOPROXY=file:///nonexist
    ! go list
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/mod_update_sum_readonly.txt

    go list -m -versions rsc.io/breaker
    stdout '^rsc.io/breaker v1.0.0 v2.0.0\+incompatible$'
    go mod download rsc.io/breaker@v1.0.0
    ! grep '^go' $GOPATH/pkg/mod/cache/download/rsc.io/breaker/@v/v1.0.0.mod
    go mod download rsc.io/breaker@v2.0.0+incompatible
    ! grep '^go' $GOPATH/pkg/mod/cache/download/rsc.io/breaker/@v/v2.0.0+incompatible.mod
    
    # Delete downloaded .zip files.
    go clean -modcache
    
    # Check for updates.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 27 22:01:54 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/mod_install_pkg_version.txt

    go install rsc.io/fortune@v1.0.0
    stderr '^go: found rsc.io/quote in rsc.io/quote v1.5.2$'
    exists $GOPATH/bin/fortune$GOEXE
    ! exists $GOPATH/pkg/mod/rsc.io/fortune@v1.0.0/go.mod # no go.mod file
    go version -m $GOPATH/bin/fortune$GOEXE
    stdout '^\tdep\trsc.io/quote\tv1.5.2\t' # latest version of fortune's dependency
    rm $GOPATH/bin
    
    
    # 'go install dir@version' works like a normal 'go install' command if
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 17:25:54 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  4. src/cmd/go/main.go

    	}
    
    	// Diagnose common mistake: GOPATH==GOROOT.
    	// This setting is equivalent to not setting GOPATH at all,
    	// which is not what most people want when they do it.
    	if gopath := cfg.BuildContext.GOPATH; filepath.Clean(gopath) == filepath.Clean(cfg.GOROOT) {
    		fmt.Fprintf(os.Stderr, "warning: GOPATH set to GOROOT (%s) has no effect\n", gopath)
    	} else {
    		for _, p := range filepath.SplitList(gopath) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:09:11 UTC 2024
    - 10K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/mod_sumdb_proxy.txt

    cp go.mod.orig go.mod
    go get rsc.io/fortune@v1.0.0 # note: must use test proxy, does not exist in real world
    rm $GOPATH/pkg/mod/cache/download/sumdb # rm sumdb cache but NOT package download cache
    rm go.sum
    
    # can fetch by explicit URL
    cp go.mod.orig go.mod
    env GOSUMDB=$sumdb' '$proxy/sumdb-direct
    go get rsc.io/fortune@v1.0.0
    rm $GOPATH/pkg/mod/cache/download/sumdb
    rm go.sum
    
    # direct access fails (because localhost.localdev does not exist)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 28 17:19:14 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/install_move_not_stale.txt

    [short] skip
    
    go build net
    ! stale net
    
    symlink new -> $GOROOT
    env OLDGOROOT=$GOROOT
    env GOROOT=$WORK${/}gopath${/}src${/}new
    go env GOROOT
    stdout $WORK[\\/]gopath[\\/]src[\\/]new
    cd new
    ! stale net
    
    # Add a control case to check that std is
    # stale with an empty cache
    env GOCACHE=$WORK${/}gopath${/}cache
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 21:51:12 UTC 2022
    - 625 bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/build_trimpath_goroot.txt

    exec ./example.test.exe -test.v
    stdout '^GOROOT '$TESTGO_GOROOT'$'
    stdout '^runtime '$TESTGO_GOROOT${/}src${/}runtime'$'
    
    ! exec ./example.test-trimpath.exe -test.v
    stdout '^GOROOT $'
    stderr 'cannot find package "runtime" in any of:\n\t\(\$GOROOT not set\)\n\t'$WORK${/}gopath${/}src${/}runtime' \(from \$GOPATH\)$'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/mod_sum_readonly.txt

    ! exists $GOPATH/pkg/mod/cache/download/rsc.io/quote/@v/v1.5.2.mod
    ! exists go.sum
    
    # If go.sum exists but contains hashes from an algorithm we don't know about,
    # we should see the same error.
    cp go.sum.h2only go.sum
    ! go list -m all
    stderr '^go: rsc.io/quote@v1.5.2: missing go.sum entry for go.mod file; to add it:\n\tgo mod download rsc.io/quote$'
    ! exists $GOPATH/pkg/mod/cache/download/rsc.io/quote/@v/v1.5.2.mod
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 05 15:42:09 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testcarchive/carchive_test.go

    		}
    	}
    
    	// We need a writable GOPATH in which to run the tests.
    	// Construct one in a temporary directory.
    	var err error
    	GOPATH, err = os.MkdirTemp("", "carchive_test")
    	if err != nil {
    		log.Panic(err)
    	}
    	if testWork {
    		log.Println(GOPATH)
    	} else {
    		defer os.RemoveAll(GOPATH)
    	}
    	os.Setenv("GOPATH", GOPATH)
    
    	// Copy testdata into GOPATH/src/testarchive, along with a go.mod file
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:43:51 UTC 2023
    - 34.8K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/mod_get_main.txt

    ! go get ..
    stderr '^go: \.\. \('$WORK'[/\\]gopath\) is not within module rooted at '$WORK'[/\\]gopath[/\\]src$'
    ! go get $WORK
    stderr '^go: '$WORK' is not within module rooted at '$WORK'[/\\]gopath[/\\]src$'
    ! go get ../...
    stderr '^go: \.\./\.\.\. \('$WORK'[/\\]gopath([/\\]...)?\) is not within module rooted at '$WORK'[/\\]gopath[/\\]src$'
    ! go get $WORK/...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 28 17:19:14 UTC 2021
    - 1.7K bytes
    - Viewed (0)
Back to top