Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 75 for modcache (0.31 sec)

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

    go clean -modcache
    
    
    # Also try it with a 'go install' that succeeds.
    # (But skip in short mode, because linking a binary is expensive.)
    [!short] go install -modcacherw example.com/printversion@v0.1.0
    [!short] cp $WORK/extraneous.txt $GOPATH/pkg/mod/example.com/printversion@v0.1.0/extraneous_file.go
    [!short] go clean -modcache
    
    
    # The flag should also be applied if given in GOFLAGS
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 29 17:53:43 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/mod_gomodcache_vendor.txt

    # This test verifies that GOMODCACHE does not affect whether checksums are embedded
    # with vendored files.
    # See issue #46400
    [short] skip 'builds and links a binary twice'
    go mod tidy
    go mod vendor
    
    go build -mod=vendor
    go version -m example$GOEXE
    cp stdout version-m.txt
    
    env GOMODCACHE=$WORK${/}modcache
    go build -mod=vendor
    go version -m example$GOEXE
    cmp stdout version-m.txt
    
    -- go.mod --
    module example
    go 1.22
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 17:19:18 UTC 2024
    - 568 bytes
    - Viewed (0)
  3. src/cmd/go/internal/clean/clean.go

    					base.Error(err)
    				}
    			}
    		}
    	}
    
    	if cleanModcache {
    		if cfg.GOMODCACHE == "" {
    			base.Fatalf("go: cannot clean -modcache without a module cache")
    		}
    		if cfg.BuildN || cfg.BuildX {
    			sh.ShowCmd("", "rm -rf %s", cfg.GOMODCACHE)
    		}
    		if !cfg.BuildN {
    			if err := modfetch.RemoveAll(cfg.GOMODCACHE); err != nil {
    				base.Error(err)
    			}
    		}
    	}
    
    	if cleanFuzzcache {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. 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)
  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/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)
  7. 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)
  8. maven-model-builder/src/main/java/org/apache/maven/model/building/ModelCache.java

     * identity of a model. The tag allows for further classification of the associated data on the sole discretion of the
     * model builder.
     *
     */
    public interface ModelCache {
    
        <T> T computeIfAbsent(String groupId, String artifactId, String version, String tag, Supplier<T> data);
    
        <T> T computeIfAbsent(Source path, String tag, Supplier<T> data);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Jan 22 17:27:48 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  9. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelCache.java

     * identity of a model. The tag allows for further classification of the associated data on the sole discretion of the
     * model builder.
     *
     */
    public interface ModelCache {
    
        <T> T computeIfAbsent(String groupId, String artifactId, String version, String tag, Supplier<T> data);
    
        <T> T computeIfAbsent(Source path, String tag, Supplier<T> data);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu May 02 15:10:38 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  10. src/cmd/internal/moddeps/moddeps_test.go

    		}
    		modcacheOk := false
    		if gomodcache := string(bytes.TrimSpace(out)); gomodcache != "" {
    			if _, err := os.Stat(gomodcache); err == nil {
    				modcacheOk = true
    			}
    		}
    		if !modcacheOk {
    			modcacheEnv = []string{
    				"GOMODCACHE=" + t.TempDir(),
    				"GOFLAGS=" + os.Getenv("GOFLAGS") + " -modcacherw", // Allow t.TempDir() to clean up subdirectories.
    			}
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 18.6K bytes
    - Viewed (0)
Back to top