- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for GOVERSION (0.13 sec)
-
src/cmd/go/testdata/script/godebug_default.txt
cp go.mod.21 go.mod go list -f '{{.Module.GoVersion}} {{.DefaultGODEBUG}}' ! stdout panicnil stdout randautoseed=0 # Go 1.21 work module should NOT set panicnil=1 in Go 1.20 dependency. cp go.mod.21 go.mod go list -f '{{.Module.GoVersion}} {{.DefaultGODEBUG}}' q ! stdout panicnil=1 ! stdout randautoseed go mod download rsc.io/panicnil # for go.sum go list -f '{{.Module.GoVersion}} {{.DefaultGODEBUG}}' rsc.io/panicnil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 13:52:10 UTC 2024 - 3.5K bytes - Viewed (0) -
src/cmd/go/internal/load/godebug.go
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, // the last version before GODEBUGs were introduced. goVersion = p.Module.GoVersion if goVersion == "" { goVersion = "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/vendor/golang.org/x/tools/internal/versions/types_go122.go
// 1) types.Info.FileVersion, which follows the cascade: // 1.a) file version (ast.File.GoVersion), // 1.b) the package version (types.Config.GoVersion), or // 2) is some unknown Future version. // // File versions require a valid package version to be provided to types // in Config.GoVersion. Config.GoVersion is either from the package's module // or the toolchain (go run). This value should be provided by go/packages
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 1.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/version.go
package types2 import ( "fmt" "go/version" "internal/goversion" ) // A goVersion is a Go language version string of the form "go1.%d" // where d is the minor version number. goVersion strings don't // contain release numbers ("go1.20.1" is not a valid goVersion). type goVersion string // asGoVersion returns v as a goVersion (e.g., "go1.20.1" becomes "go1.20").
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 20:44:57 UTC 2024 - 2.4K bytes - Viewed (0) -
src/cmd/go/testdata/script/mod_edit.txt
go mod edit -dropgodebug key cmpenv go.mod go.mod.start -- x.go -- package x -- w/w.go -- package w -- $WORK/go.mod.init -- module x.x/y/z go $goversion -- $WORK/go.mod.edit1 -- module x.x/y/z go $goversion require x.1 v1.0.0 exclude ( x.1 v1.2.0 x.1 v1.2.1 x.1 v2.0.0+incompatible ) replace ( x.1 v1.3.0 => y.1 v1.4.0 x.1 v1.4.0 => ../z )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 13:52:10 UTC 2024 - 6.6K bytes - Viewed (0) -
src/cmd/go/internal/toolchain/switch.go
s.addTooNew(e) } case interface{ Unwrap() error }: s.addTooNew(err.Unwrap()) case *gover.TooNewError: if s.TooNew == nil || gover.Compare(err.GoVersion, s.TooNew.GoVersion) > 0 || 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.
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/tidy.go
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/fix/main.go
} func main() { telemetry.Start() flag.Usage = usage flag.Parse() telemetry.Inc("fix/invocations") telemetry.CountFlags("fix/flag:", *flag.CommandLine) if !version.IsValid(*goVersion) { report(fmt.Errorf("invalid -go=%s", *goVersion)) os.Exit(exitCode) } sort.Sort(byDate(fixes)) if *allowedRewrites != "" { allowed = make(map[string]bool) for _, f := range strings.Split(*allowedRewrites, ",") {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 5.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stdversion/stdversion.go
// since at that time the go directive wasn't clearly // specified as a toolchain requirement. // // TODO(adonovan): after go1.21, call GoVersion directly. pkgVersion := any(pass.Pkg).(interface{ GoVersion() string }).GoVersion() if !versions.AtLeast(pkgVersion, "go1.21") { return nil, nil } // disallowedSymbols returns the set of standard library symbols
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 4.8K bytes - Viewed (0) -
src/cmd/go/testdata/script/work_edit.txt
env GOWORK=$GOPATH/src/unformatted go work edit -print -fmt cmp stdout $GOPATH/src/formatted -- m/go.mod -- module m go 1.18 -- go.work.want_initial -- go $goversion use ./m -- go.work.want_use_n -- go $goversion use ( ./m ./n ) -- go.work.want_go_118 -- go 1.18 use ( ./m ./n ) -- go.work.want_dropuse_m -- go 1.18 use ./n
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 13:52:10 UTC 2024 - 2.6K bytes - Viewed (0)