- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for EditBuildList (0.3 sec)
-
src/cmd/go/internal/workcmd/sync.go
// so we don't write some go.mods with the "before" toolchain // and others with the "after" toolchain. If nothing else, that // discrepancy could show up in auto-recorded toolchain lines. changed, err := modload.EditBuildList(ctx, nil, mustSelectFor[m]) if err != nil { continue } if changed { modload.LoadPackages(ctx, modload.PackageOpts{ Tags: imports.AnyTags(),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Jun 03 21:13:11 UTC 2023 - 4.6K bytes - Viewed (0) -
src/cmd/go/internal/modload/buildlist.go
// the listed modules requiring a higher version of another), EditBuildList // returns a *ConstraintError and leaves the build list in its previous state. // // On success, EditBuildList reports whether the selected version of any module // in the build list may have been changed (possibly to or from "none") as a // result. func EditBuildList(ctx context.Context, add, mustSelect []module.Version) (changed bool, err error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 16:04:44 UTC 2024 - 53.8K bytes - Viewed (0) -
src/cmd/go/internal/modget/get.go
// A TooNewError can happen for 'go get go@newversion' // when all the required modules are old enough // but the command line is not. // TODO(bcmills): modload.EditBuildList should catch this instead, // and then this can be changed to base.Fatal(err). toolchain.SwitchOrFatal(ctx, err) } newReqs := reqsFromGoMod(modload.ModFile()) r.reportChanges(oldReqs, newReqs)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 18:26:32 UTC 2024 - 66.5K bytes - Viewed (0) -
src/cmd/go/internal/load/pkg.go
// the dummy command-line-arguments module. Add a requirement on the // module that provides the packages named on the command line. if _, err := modload.EditBuildList(ctx, nil, []module.Version{rootMod}); err != nil { return nil, fmt.Errorf("%s: %w", args[0], err) } // Load packages for all arguments. pkgs := PackagesAndErrors(ctx, opts, patterns)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 28 17:00:51 UTC 2024 - 120K bytes - Viewed (0)