- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for DownloadDir (0.11 sec)
-
src/cmd/go/internal/modfetch/cache.go
} // DownloadDir returns the directory to which m should have been downloaded. // An error will be returned if the module path or version cannot be escaped. // An error satisfying errors.Is(err, fs.ErrNotExist) will be returned // along with the directory if the directory does not exist or if the directory // is not completely populated. func DownloadDir(ctx context.Context, m module.Version) (string, error) {
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/modload/build.go
m.GoMod = gomod } } if gomodsum, ok := modfetch.RecordedSum(modkey(mod)); ok { m.GoModSum = gomodsum } } if checksumOk("") { dir, err := modfetch.DownloadDir(ctx, mod) if err == nil { m.Dir = dir } if sum, ok := modfetch.RecordedSum(mod); ok { m.Sum = sum } } if mode&ListRetracted != 0 { addRetraction(ctx, m)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 16:56:39 UTC 2024 - 13.3K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/fetch.go
return dir, nil }) } func download(ctx context.Context, mod module.Version) (dir string, err error) { ctx, span := trace.StartSpan(ctx, "modfetch.download "+mod.String()) defer span.Done() dir, err = DownloadDir(ctx, mod) if err == nil { // The directory has already been completely extracted (no .partial file exists). return dir, nil } else if dir == "" || !errors.Is(err, fs.ErrNotExist) { 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)