Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 149 for modcache (0.12 sec)

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

    # requirements are inconsistent.)
    
    rm go.sum
    cp go.mod.orig go.mod
    go mod edit -go=1.17
    cp go.mod.update go.mod.go117
    go mod edit -go=1.17 go.mod.go117
    
    go clean -modcache
    go mod download
    cmp go.mod go.mod.go117
    
    go list -e -m all
    stdout '^rsc.io/quote v1.5.2$'
    exists $GOPATH/pkg/mod/cache/download/rsc.io/quote/@v/v1.5.2.zip
    stdout '^rsc.io/sampler v1.3.0$'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 04 20:42:35 UTC 2021
    - 8.5K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/cmd/go/internal/modfetch/coderepo_test.go

    	if err != nil {
    		return err
    	}
    	defer func() {
    		if rmErr := os.RemoveAll(dir); err == nil {
    			err = rmErr
    		}
    	}()
    
    	cfg.GOMODCACHE = filepath.Join(dir, "modcache")
    	if err := os.Mkdir(cfg.GOMODCACHE, 0755); err != nil {
    		return err
    	}
    
    	srv, err := vcstest.NewServer()
    	if err != nil {
    		return err
    	}
    	defer func() {
    		if closeErr := srv.Close(); err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 18 20:10:14 UTC 2023
    - 29.4K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modfetch/fetch.go

    	// opened files in the temporary directory.
    	//
    	// Go 1.14.2 and higher respect .partial files. Older versions may use
    	// partially extracted directories. 'go mod verify' can detect this,
    	// and 'go clean -modcache' can fix it.
    	if err := os.MkdirAll(parentDir, 0777); err != nil {
    		return "", err
    	}
    	if err := os.WriteFile(partialPath, nil, 0666); err != nil {
    		return "", err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 30.3K bytes
    - Viewed (0)
Back to top