- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for newerToolchain (0.18 sec)
-
src/cmd/go/internal/toolchain/toolchain_test.go
) func TestNewerToolchain(t *testing.T) { for _, tt := range newerToolchainTests { out, err := newerToolchain(tt.need, tt.list) if (err != nil) != (out == "") { t.Errorf("newerToolchain(%v, %v) = %v, %v, want error", tt.need, tt.list, out, err) continue } if out != tt.out { t.Errorf("newerToolchain(%v, %v) = %v, %v want %v, nil", tt.need, tt.list, out, err, tt.out) } } } var f = strings.Fields
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 30 19:11:44 UTC 2023 - 1.8K bytes - Viewed (0) -
src/cmd/go/internal/toolchain/switch.go
} } sort.Slice(list, func(i, j int) bool { return gover.Compare(list[i], list[j]) < 0 }) return list, nil } // newerToolchain implements NewerToolchain where the list of choices is known. // It is separated out for easier testing of this logic. func newerToolchain(need string, list []string) (string, error) { // Consider each release in the list, from newest to oldest,
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/testdata/script/gotoolchain_path.txt
env GOTOOLCHAIN=local go mod edit -toolchain=none -go=1.50.0 grep 'go 1.50.0$' go.mod ! grep toolchain go.mod env GOTOOLCHAIN=auto ! go version stderr 'running go1.50.0 from PATH' # NewerToolchain should find Go 1.50.0. env GOTOOLCHAIN=local go mod edit -toolchain=none -go=1.22 grep 'go 1.22$' go.mod ! grep toolchain go.mod env GOTOOLCHAIN=path ! go run rsc.io/fortune@v0.0.1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 06 22:21:42 UTC 2024 - 1.9K bytes - Viewed (0)