- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for CachePath (0.12 sec)
-
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/rocache/AbstractReadOnlyCacheDependencyResolutionTest.groovy
roCacheDir = temporaryFolder.createDir("read-only-cache") def cachePath = roCacheDir.toPath() doCopy(metadataCacheDir, cachePath, CacheLayout.MODULES) roCacheDir } private void doCopy(File cacheDir, Path cachePath, CacheLayout entry) { if (cacheDir.exists()) { Files.move(cacheDir.toPath(), cachePath.resolve(entry.key)) } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 22 01:27:55 UTC 2024 - 7.6K bytes - Viewed (0) -
platforms/ide/ide/src/testFixtures/groovy/org/gradle/plugins/ide/eclipse/EclipseClasspathFixture.groovy
} void assertHasCachedSource(String group, String module, String version) { assert entry.@sourcepath ==~ cachePath(group, module, version) + Pattern.quote("${module}-${version}-sources.jar") } private String cachePath(String group, String module, String version) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 22 01:27:55 UTC 2024 - 7.4K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/CacheResolveIntegrationTest.groovy
def hashOfBootJar = '1234' // for demo purpose def invalidPath = "org.spring/core/1.0/$hash/artifact-1.0./../../../../boot/2.0/$hashOfBootJar/pwned.txt" def invalidLocation = executer.gradleUserHomeDir.file(cachePath + invalidPath).canonicalFile server.allowGetOrHead("/repo/org/boot/2.0/$hashOfBootJar/pwned.txt", fakeDep) and: withValidJavaSource() buildWithJavaLibraryAndMavenRepoArtifactOnly()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 22 01:27:55 UTC 2024 - 9.7K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/cache.go
return "", err } enc, err := module.EscapePath(path) if err != nil { return "", err } return filepath.Join(cfg.GOMODCACHE, "cache/download", enc, "/@v"), nil } func CachePath(ctx context.Context, m module.Version, suffix string) (string, error) { if gover.IsToolchain(m.Path) { return "", ErrToolchain } dir, err := cacheDir(ctx, m.Path) if err != nil { return "", err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 18:15:22 UTC 2024 - 24.7K bytes - Viewed (0) -
src/cmd/go/internal/modcmd/verify.go
// "go" and "toolchain" have no disk footprint; nothing to verify. return nil } if modload.MainModules.Contains(mod.Path) { return nil } var errs []error zip, zipErr := modfetch.CachePath(ctx, mod, "zip") if zipErr == nil { _, zipErr = os.Stat(zip) } dir, dirErr := modfetch.DownloadDir(ctx, mod) data, err := os.ReadFile(zip + "hash") if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 16:56:35 UTC 2024 - 3.6K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/fetch.go
for _, path := range old { RemoveAll(path) // best effort } } if dirExists { if err := RemoveAll(dir); err != nil { return "", err } } partialPath, err := CachePath(ctx, mod, "partial") if err != nil { return "", err } // Extract the module zip directory at its final location. // // To prevent other processes from reading the directory if we crash,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 30.3K bytes - Viewed (0) -
src/cmd/go/internal/modload/build.go
if summary, err := rawGoModSummary(mod); err == nil && summary.goVersion != "" { m.GoVersion = summary.goVersion } } if m.Version != "" { if checksumOk("/go.mod") { gomod, err := modfetch.CachePath(ctx, mod, "mod") if err == nil { if info, err := os.Stat(gomod); err == nil && info.Mode().IsRegular() { m.GoMod = gomod } } if gomodsum, ok := modfetch.RecordedSum(modkey(mod)); ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 16:56:39 UTC 2024 - 13.3K bytes - Viewed (0)