- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for NeedSwitch (0.1 sec)
-
src/cmd/go/internal/toolchain/switch.go
gover.Compare(err.GoVersion, s.TooNew.GoVersion) == 0 && err.What < s.TooNew.What { s.TooNew = err } } } // NeedSwitch reports whether Switch would attempt to switch toolchains. func (s *Switcher) NeedSwitch() bool { return s.TooNew != nil && (HasAuto() || HasPath()) } // Switch decides whether to switch to a newer toolchain // to resolve any of the saved errors.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 18:15:22 UTC 2024 - 7K bytes - Viewed (0) -
src/cmd/go/internal/modcmd/download.go
// toolchain version) or only one module (as is used by the Go Module Proxy). if infosErr != nil { var sw toolchain.Switcher sw.Error(infosErr) if sw.NeedSwitch() { sw.Switch(ctx) } // Otherwise, wait to report infosErr after we have downloaded // when we can. } if !haveExplicitArgs && modload.WorkFilePath() == "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 19:32:39 UTC 2023 - 13.5K bytes - Viewed (0) -
src/cmd/go/internal/modget/get.go
for _, cs := range q.candidates { sw.Error(cs.err) } } // Only switch if we need a newer toolchain. // Otherwise leave the cs.err for reporting later. if sw.NeedSwitch() { sw.Switch(ctx) // If NeedSwitch is true and Switch returns, Switch has failed to locate a newer toolchain. // It printed the errors along with one more about not finding a good toolchain. base.Exit() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 18:26:32 UTC 2024 - 66.5K bytes - Viewed (0)