- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 30 for kldload (0.13 sec)
-
src/cmd/go/internal/workcmd/sync.go
SilencePackageErrors: true, }, "all") modload.WriteGoMod(ctx, modload.WriteOpts{}) } goV = gover.Max(goV, modload.MainModules.GoVersion()) } wf, err := modload.ReadWorkFile(workFilePath) if err != nil { base.Fatal(err) } modload.UpdateWorkGoVersion(wf, goV) modload.UpdateWorkFile(wf) if err := modload.WriteWorkFile(workFilePath, wf); err != nil { base.Fatal(err) }
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/modcmd/why.go
base.AddModCommonFlags(&cmdWhy.Flag) } func runWhy(ctx context.Context, cmd *base.Command, args []string) { modload.InitWorkfile() modload.ForceUseModules = true modload.RootMode = modload.NeedRoot modload.ExplicitWriteGoMod = true // don't write go.mod in ListModules loadOpts := modload.PackageOpts{ Tags: imports.AnyTags(), VendorModulesInGOROOTSrc: true, LoadTests: !*whyVendor,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 01 21:32:23 UTC 2023 - 3.8K bytes - Viewed (0) -
src/cmd/go/internal/modcmd/graph.go
base.AddModCommonFlags(&cmdGraph.Flag) } func runGraph(ctx context.Context, cmd *base.Command, args []string) { modload.InitWorkfile() if len(args) > 0 { base.Fatalf("go: 'go mod graph' accepts no arguments") } modload.ForceUseModules = true modload.RootMode = modload.NeedRoot goVersion := graphGo.String() if goVersion != "" && gover.Compare(gover.Local(), goVersion) < 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Jun 03 21:13:11 UTC 2023 - 2.2K bytes - Viewed (0) -
src/cmd/go/internal/modcmd/verify.go
modload.InitWorkfile() if len(args) != 0 { // NOTE(rsc): Could take a module pattern. base.Fatalf("go: verify takes no arguments") } modload.ForceUseModules = true modload.RootMode = modload.NeedRoot // Only verify up to GOMAXPROCS zips at once. type token struct{} sem := make(chan token, runtime.GOMAXPROCS(0)) mg, err := modload.LoadModGraph(ctx, "") 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/load/godebug.go
func defaultGODEBUG(p *Package, directives, testDirectives, xtestDirectives []build.Directive) string { if p.Name != "main" { return "" } goVersion := modload.MainModules.GoVersion() if modload.RootMode == modload.NoRoot && p.Module != nil { // This is go install pkg@version or go run pkg@version. // Use the Go version from the package. // If there isn't one, then assume Go 1.20,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 13:52:10 UTC 2024 - 3.1K bytes - Viewed (0) -
src/cmd/go/internal/workcmd/init.go
} func init() { base.AddChdirFlag(&cmdInit.Flag) base.AddModCommonFlags(&cmdInit.Flag) } func runInit(ctx context.Context, cmd *base.Command, args []string) { modload.InitWorkfile() modload.ForceUseModules = true gowork := modload.WorkFilePath() if gowork == "" { gowork = filepath.Join(base.Cwd(), "go.work") } if _, err := fsys.Stat(gowork); err == nil { base.Fatalf("go: %s already exists", gowork)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Jun 03 21:13:11 UTC 2023 - 1.6K bytes - Viewed (0) -
src/cmd/go/internal/workcmd/use.go
modload.ForceUseModules = true modload.InitWorkfile() gowork := modload.WorkFilePath() if gowork == "" { base.Fatalf("go: no go.work file found\n\t(run 'go work init' first or specify path using GOWORK environment variable)") } wf, err := modload.ReadWorkFile(gowork) if err != nil { base.Fatal(err) } workUse(ctx, gowork, wf, args) modload.WriteWorkFile(gowork, wf) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Jun 03 21:13:11 UTC 2023 - 7K bytes - Viewed (0) -
src/cmd/go/internal/telemetrystats/telemetrystats.go
"cmd/go/internal/cfg" "cmd/go/internal/modload" "cmd/internal/telemetry" ) func Increment() { incrementConfig() incrementVersionCounters() } // incrementConfig increments counters for the configuration // the command is running in. func incrementConfig() { if !modload.WillBeEnabled() { telemetry.Inc("go/mode:gopath") } else if workfile := modload.FindGoWork(base.Cwd()); workfile != "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:09:11 UTC 2024 - 1.4K bytes - Viewed (0) -
src/cmd/go/internal/modcmd/tidy.go
// request that their test dependencies be included. modload.ForceUseModules = true modload.RootMode = modload.NeedRoot goVersion := tidyGo.String() if goVersion != "" && gover.Compare(gover.Local(), goVersion) < 0 { toolchain.SwitchOrFatal(ctx, &gover.TooNewError{ What: "-go flag", GoVersion: goVersion, }) } modload.LoadPackages(ctx, modload.PackageOpts{ TidyGoVersion: tidyGo.String(),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 5K bytes - Viewed (0) -
src/cmd/go/internal/run/run.go
// Set global module flags for 'go run cmd@version'. // This must be done before modload.Init, but we need to call work.BuildInit // before loading packages, since it affects package locations, e.g., // for -race and -msan. modload.ForceUseModules = true modload.RootMode = modload.NoRoot modload.AllowMissingModuleImports() modload.Init() } else { modload.InitWorkfile() } work.BuildInit() b := work.NewBuilder("")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 19:09:38 UTC 2023 - 6.9K bytes - Viewed (0)