- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for BuildXWriter (0.2 sec)
-
src/cmd/go/internal/modfetch/codehost/codehost.go
} key := typ + ":" + name dir = filepath.Join(cfg.GOMODCACHE, "cache/vcs", fmt.Sprintf("%x", sha256.Sum256([]byte(key)))) xLog, buildX := cfg.BuildXWriter(ctx) if buildX { fmt.Fprintf(xLog, "mkdir -p %s # %s %s\n", filepath.Dir(dir), typ, name) } if err := os.MkdirAll(filepath.Dir(dir), 0777); err != nil { return "", "", err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:50:24 UTC 2024 - 12.8K bytes - Viewed (0) -
src/cmd/go/internal/cfg/cfg.go
return context.WithValue(ctx, buildXContextKey{}, xLog) } type buildXContextKey struct{} // BuildXWriter returns nil if BuildX is false, or // the writer to which BuildX output should be written otherwise. func BuildXWriter(ctx context.Context) (io.Writer, bool) { if !BuildX { return nil, false } if v := ctx.Value(buildXContextKey{}); v != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 17:13:51 UTC 2024 - 19.3K bytes - Viewed (0)