- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for UpdateGoModFromReqs (0.16 sec)
-
src/cmd/go/internal/modload/init.go
requirements = LoadModFile(ctx) return commitRequirements(ctx, opts) } var errNoChange = errors.New("no update needed") // UpdateGoModFromReqs returns a modified go.mod file using the current // requirements. It does not commit these changes to disk. func UpdateGoModFromReqs(ctx context.Context, opts WriteOpts) (before, after []byte, modFile *modfile.File, err error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 18:36:30 UTC 2024 - 69.8K bytes - Viewed (0) -
src/cmd/go/internal/modload/load.go
keep[m] = true } } if opts.TidyDiff { cfg.BuildMod = "readonly" loaded = ld requirements = loaded.requirements currentGoMod, updatedGoMod, _, err := UpdateGoModFromReqs(ctx, WriteOpts{}) if err != nil { base.Fatal(err) } goModDiff := diff.Diff("current/go.mod", currentGoMod, "tidy/go.mod", updatedGoMod) modfetch.TrimGoSum(keep)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 84K bytes - Viewed (0)