Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 83 for modcache (0.11 sec)

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

    # shouldn't require it when it won't be used.
    #
    # TODO(golang.org/issue/39882): commands below should work, too.
    # * go clean -modcache
    # * go env
    # * go fix
    # * go fmt
    # * go generate
    # * go get
    # * go list (without -export or -compiled)
    
    env GOCACHE=off
    
    # Commands that don't completely load packages should work.
    go doc fmt
    stdout Printf
    
    ! go tool compile -h
    stderr usage:
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 28 17:19:14 UTC 2021
    - 965 bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/mod_list.txt

    # downloaded dependencies are read-only
    exists -readonly $GOPATH/pkg/mod/rsc.io/quote@v1.5.2
    exists -readonly $GOPATH/pkg/mod/rsc.io/quote@v1.5.2/buggy
    
    # go clean -modcache can delete read-only dependencies
    go clean -modcache
    ! exists $GOPATH/pkg/mod/rsc.io/quote@v1.5.2
    
    # list {{.Dir}} shows replaced directories
    cp go.mod2 go.mod
    go list -mod=mod -f {{.Dir}} rsc.io/quote
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 18:16:28 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/mod_sumdb_golang.txt

    cp go.sum saved.sum
    
    
    # Download from proxy.golang.org with go.sum entry already.
    # Use 'go list' instead of 'go get' since the latter may download extra go.mod
    # files not listed in go.sum.
    
    go clean -modcache
    env GOSUMDB=sum.golang.org
    env GOPROXY=https://proxy.golang.org,direct
    
    go list -x -m all  # Download go.mod files.
    ! stderr github
    stderr proxy.golang.org/rsc.io/quote
    ! stderr sum.golang.org/tile
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 17 18:25:37 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/mod_get_issue47650.txt

    # Explicitly requesting that same version should succeed, fetching additional
    # history for the requested commit as needed in order to validate the
    # pseudo-version base.
    go clean -modcache
    cp go.mod.orig go.mod
    go get -x vcs-test.golang.org/git/issue47650.git/cmd/issue47650@v0.1.1-0.20210811175200-21535ef346c3
    stderr '^go: added vcs-test.golang.org/git/issue47650.git v0.1.1-0.20210811175200-21535ef346c3$'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 11 22:29:11 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/mod_vendor_build.txt

    # golang.org/issue/26704
    go list -mod=vendor
    cmp go.mod go.mod.good
    
    # With a clean (and empty) module cache, 'go list -mod=vendor' should not download modules.
    go clean -modcache
    env GOPROXY=off
    ! go list ...
    go list -mod=vendor ...
    
    # However, it should still list packages in the main module.
    go list -mod=vendor m/...
    stdout m
    
    -- go.mod --
    module m
    go 1.12
    -- x.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 28 17:19:14 UTC 2021
    - 931 bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/work_goproxy_off.txt

    # Now remove the module dependencies from the module cache.
    # Because one module upgrades a transitive dependency needed by another,
    # listing the modules in the workspace should error out.
    
    go clean -modcache
    env GOPROXY=off
    ! go list -m all
    stderr '^go: rsc.io/sampler@v1.3.0: module lookup disabled by GOPROXY=off$'
    
    -- example.go --
    package example
    
    import _ "rsc.io/sampler"
    -- go.mod --
    module example
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 14 19:05:09 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/mod_update_sum_readonly.txt

    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.
    go list -m -u rsc.io/breaker
    stdout '^rsc.io/breaker v1.0.0 \[v2.0.0\+incompatible\]$'
    
    # We should not have downloaded zips.
    ! exists $GOPATH/pkg/mod/cache/download/rsc.io/breaker/@v/v1.0.0.zip
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 27 22:01:54 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/work_why_download_graph.txt

    ! exists $GOPATH/pkg/mod/cache/download/rsc.io/quote/@v/v1.5.0.mod
    grep '^rsc\.io/quote v1\.5\.2/go\.mod h1:' go.work.sum
    grep '^rsc\.io/quote v1\.5\.2 h1:' go.work.sum
    
    go clean -modcache
    rm go.work.sum
    go mod download
    exists $GOPATH/pkg/mod/cache/download/rsc.io/quote/@v/v1.5.2.info
    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 Jun 02 23:07:08 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/mod_sumdb.txt

    stderr 'SECURITY ERROR\ngo.sum database server misbehavior detected!'
    stderr 'proof of misbehavior:'
    
    # removing the cached wrong tree head and cached tiles clears the bad data
    rm $GOPATH/pkg/sumdb/$dbname/latest
    go clean -modcache
    go get rsc.io/fortune
    
    -- go.mod.orig --
    module m
    
    go 1.16
    -- m.go --
    package m
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 28 17:19:14 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/mod_readonly.txt

    # update go.mod - go mod tidy allowed
    cp go.mod.empty go.mod
    go mod tidy
    cp go.mod go.mod.tidy
    
    # -mod=readonly must succeed once go.mod is up-to-date...
    go list all
    
    # ... even if it needs downloads
    go clean -modcache
    go list all
    
    # -mod=readonly must not cause 'go list -m' to fail.
    # (golang.org/issue/36478)
    go list -m all
    ! stderr 'cannot query module'
    
    # -mod=readonly should reject inconsistent go.mod files
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 28 17:19:14 UTC 2021
    - 3.1K bytes
    - Viewed (0)
Back to top