Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for GOSUMDB (0.43 sec)

  1. src/cmd/go/internal/modfetch/sumdb.go

    	}
    
    	if gosumdb == "off" {
    		return "", nil, fmt.Errorf("checksum database disabled by GOSUMDB=off")
    	}
    
    	key := strings.Fields(gosumdb)
    	if len(key) >= 1 {
    		if k := knownGOSUMDB[key[0]]; k != "" {
    			key[0] = k
    		}
    	}
    	if len(key) == 0 {
    		return "", nil, fmt.Errorf("missing GOSUMDB")
    	}
    	if len(key) > 2 {
    		return "", nil, fmt.Errorf("invalid GOSUMDB: too many fields")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 20 15:02:47 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/gotoolchain_net.txt

    stdout go1.999testmod
    
    # GOTOOLCHAIN with GOSUMDB enabled but at a bad URL should operate in cache and not try badurl
    env oldsumdb=$GOSUMDB
    env GOSUMDB=$oldsumdb' http://badurl'
    go version
    ! stderr downloading
    stdout go1.999testmod
    
    # GOTOOLCHAIN with GOSUMB=off should fail, because it cannot access even the cached sumdb info
    # without the sumdb name.
    env GOSUMDB=off
    ! go version
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 14 17:16:47 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/mod_gonoproxy.txt

    env GO111MODULE=on
    env sumdb=$GOSUMDB
    env proxy=$GOPROXY
    env GOPRIVATE GOPROXY GONOPROXY GOSUMDB GONOSUMDB
    env dbname=localhost.localdev/sumdb
    
    # disagree with sumdb fails
    cp go.mod.orig go.mod
    env GOSUMDB=$sumdb' '$proxy/sumdb-wrong
    ! go get rsc.io/quote
    stderr 'SECURITY ERROR'
    
    # GONOSUMDB bypasses sumdb, for rsc.io/quote, rsc.io/sampler, golang.org/x/text
    env GONOSUMDB='*/quote,*/*mple*,golang.org/x'
    go get rsc.io/quote
    rm go.sum
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 24 15:54:04 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/mod_sumdb_golang.txt

    # Test default GOPROXY and GOSUMDB
    [go-builder] env GOPROXY=
    [go-builder] env GOSUMDB=
    [go-builder] go env GOPROXY
    [go-builder] stdout '^https://proxy.golang.org,direct$'
    [go-builder] go env GOSUMDB
    [go-builder] stdout '^sum.golang.org$'
    [go-builder] env GOPROXY=https://proxy.golang.org
    [go-builder] go env GOSUMDB
    [go-builder] stdout '^sum.golang.org$'
    
    # Download direct from github.
    
    [!net:proxy.golang.org] skip
    [!net:sum.golang.org] skip
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 17 18:25:37 UTC 2023
    - 2K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/env_changed.txt

    # Test query for non-defaults in the env
    
    env GOROOT=./a
    env GOTOOLCHAIN=local
    env GOSUMDB=nodefault
    env GOPROXY=nodefault
    env GO111MODULE=auto
    env CGO_CFLAGS=nodefault
    env CGO_CPPFLAGS=nodefault
    
    go env -changed
    # linux output like GOTOOLCHAIN='local'
    # windows output like GOTOOLCHAIN=local
    stdout 'GOTOOLCHAIN=''?local''?'
    stdout 'GOSUMDB=''?nodefault''?'
    stdout 'GOPROXY=''?nodefault''?'
    stdout 'GO111MODULE=''?auto''?'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 18:49:03 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/mod_get_fallback.txt

    env GO111MODULE=on
    
    [!net:golang.org] skip
    [!net:proxy.golang.org] skip
    
    env GOPROXY=https://proxy.golang.org,direct
    env GOSUMDB=off
    
    go get -x -v golang.org/x/tools/cmd/goimports
    stderr '# get https://proxy.golang.org/golang.org/x/tools/@v/list'
    ! stderr '# get https://golang.org'
    
    -- go.mod --
    module m
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 24 15:54:04 UTC 2023
    - 315 bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/mod_sum_issue56222.txt

    # Issue 60667: 'go list' without -mod=mod shouldn't report the checksums as
    # dirty either.
    go list -m -u all
    
    env OLDSUMDB=$GOSUMDB
    env GOSUMDB=bad
    go mod tidy
    
    env GOSUMDB=$OLDSUMDB
    
    
    # Regardless of the go version in go.mod, 'go get -t' should fetch
    # enough checksums to run 'go test' on the named package.
    
    rm p
    go mod tidy -go=1.20
    go list -m all
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 12 13:58:58 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/mod_get_major.txt

    [short] skip
    [!git] skip
    
    env GO111MODULE=on
    env GOPROXY=direct
    env GOSUMDB=off
    
    # golang.org/issue/34383: if a module path ends in a major-version suffix,
    # ensure that 'direct' mode can resolve the package to a module.
    
    go get vcs-test.golang.org/git/v3pkg.git/v3@v3.0.0
    
    go list -m vcs-test.golang.org/git/v3pkg.git/v3
    stdout '^vcs-test.golang.org/git/v3pkg.git/v3 v3.0.0$'
    
    go get vcs-test.golang.org/git/empty-v2-without-v1.git/v2@v2.0.0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 24 15:54:04 UTC 2023
    - 616 bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/mod_sumdb_file_path.txt

    [!net:proxy.golang.org] skip
    [!net:sum.golang.org] skip
    
    env GO111MODULE=on
    [go-builder] env GOSUMDB=
    [!go-builder] env GOSUMDB=sum.golang.org  # Set explicitly in case GOROOT/go.env is modified.
    env GOPATH=$WORK/gopath1
    
    # With a file-based proxy with an empty checksum directory,
    # downloading a new module should fail, even if a subsequent
    # proxy contains a more complete mirror of the sum database.
    #
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 17 18:25:37 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/mod_gopkg_unstable.txt

    cp x.go.txt x.go
    cp go.mod.empty go.mod
    go list
    
    [!net:gopkg.in] skip
    [!git] skip
    
    skip  # TODO(#54503): redirect gopkg.in requests to a local server and re-enable.
    
    env GOPROXY=direct
    env GOSUMDB=off
    go get gopkg.in/macaroon-bakery.v2-unstable/bakery
    go list -m all
    stdout 'gopkg.in/macaroon-bakery.v2-unstable v2.0.0-[0-9]+-[0-9a-f]+$'
    
    -- go.mod.empty --
    module m
    
    -- x.go.txt --
    package x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 24 15:54:04 UTC 2023
    - 509 bytes
    - Viewed (0)
Back to top