Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 130 for modcache (0.18 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/cmd/go/testdata/script/reuse_git.txt

    cp stdout all.json
    
    # clean the module cache, make sure that makes go mod download re-run git fetch, clean again
    go clean -modcache
    go mod download -x -json vcs-test.golang.org/git/hello.git@latest
    stderr 'git( .*)* fetch'
    go clean -modcache
    
    # reuse go mod download vcstest/hello result
    go mod download -reuse=hello.json -x -json vcs-test.golang.org/git/hello.git@latest
    ! stderr 'git( .*)* fetch'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 22:10:38 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/mod_sum_issue56222.txt

    stdout 1.18
    
    
    # Even at go 1.20 or earlier, 'go mod tidy' shouldn't need go.mod files or
    # checksums that it won't record.
    
    go mod tidy -go=1.20
    go clean -modcache  # Remove checksums from the module cache, so that only go.sum is used.
    
    # Issue 60667: 'go list' without -mod=mod shouldn't report the checksums as
    # dirty either.
    go list -m -u all
    
    env OLDSUMDB=$GOSUMDB
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 12 13:58:58 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modfetch/sumdb.go

    	}
    	return f.Close()
    }
    
    // ReadCache reads cached lookups or tiles from
    // GOPATH/pkg/mod/cache/download/sumdb,
    // which will be deleted by "go clean -modcache".
    func (*dbClient) ReadCache(file string) ([]byte, error) {
    	targ := filepath.Join(cfg.GOMODCACHE, "cache/download/sumdb", file)
    	data, err := lockedfile.Read(targ)
    	// lockedfile.Write does not atomically create the file with contents.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 20 15:02:47 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  8. src/cmd/go/internal/modfetch/codehost/git_test.go

    	// Redirect the module cache to a fresh directory to avoid crosstalk, and make
    	// it read/write so that the test can still clean it up easily when done.
    	cfg.GOMODCACHE = filepath.Join(dir, "modcache")
    	cfg.ModCacheRW = true
    
    	m.Run()
    	return nil
    }
    
    func testContext(t testing.TB) context.Context {
    	w := newTestWriter(t)
    	return cfg.WithBuildXWriter(context.Background(), w)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 19:46:23 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/mod_outside.txt

    stderr '^go: go.mod file not found in current directory or any parent directory.$'
    stderr '^\t''go get'' is no longer supported outside a module.$'
    
    # 'go get' should not download anything.
    go clean -modcache
    ! go get example.com/printversion@v1.0.0
    stderr '^go: go.mod file not found in current directory or any parent directory.$'
    stderr '^\t''go get'' is no longer supported outside a module.$'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 18 15:34:40 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  10. src/cmd/dist/build.go

    	// go tool may complain.
    	os.Setenv("GOPATH", pathf("%s/pkg/obj/gopath", goroot))
    
    	// Set GOPROXY=off to avoid downloading modules to the modcache in
    	// the GOPATH set above to be inside GOROOT. The modcache is read
    	// only so if we downloaded to the modcache, we'd create readonly
    	// files in GOROOT, which is undesirable. See #67463)
    	os.Setenv("GOPROXY", "off")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
Back to top