@@ -7,31 +7,31 @@ env PATH=${WORK}/.bin${:}${PATH}
7
7
# An empty go version.
8
8
env TOOLCHAIN_GOVERSION=''
9
9
! exec garble build
10
- stderr 'Go version is too old; please upgrade to go1\.23\.5 or newer'
10
+ stderr 'Go version is too old; please upgrade to go1\.24 or newer'
11
11
12
12
# We should error on a devel version that's too old.
13
13
# Note that they lacked the "goN.M-" prefix.
14
14
env TOOLCHAIN_GOVERSION='devel +afb5fca Sun Aug 07 00:00:00 2020 +0000'
15
15
! exec garble build
16
- stderr 'Go version is too old; please upgrade to go1\.23\.5 or newer'
16
+ stderr 'Go version is too old; please upgrade to go1\.24 or newer'
17
17
18
18
# Another form of old version; with an old "goN.M-" prefix.
19
19
env TOOLCHAIN_GOVERSION='devel go1.15-afb5fca Sun Aug 07 00:00:00 2020 +0000'
20
20
! exec garble build
21
- stderr 'Go version "devel go1\.15-.*2020.*" is too old; please upgrade to go1\.23 '
21
+ stderr 'Go version "devel go1\.15-.*2020.*" is too old; please upgrade to go1\.24 or newer '
22
22
23
23
# A current devel version should be fine.
24
24
# Note that we don't look at devel version timestamps.
25
- env GARBLE_TEST_GOVERSION='go1.23 .5'
25
+ env GARBLE_TEST_GOVERSION='go1.24 .5'
26
26
# TODO: temporarily disabled while we do not support tip.
27
- # env TOOLCHAIN_GOVERSION='devel go1.23 -ad97d204f0 Sun Sep 12 16:46:58 2023 +0000'
27
+ # env TOOLCHAIN_GOVERSION='devel go1.24 -ad97d204f0 Sun Sep 12 16:46:58 2023 +0000'
28
28
# ! exec garble build
29
29
# stderr 'mocking the real build'
30
30
31
31
# We should error on a stable version that's too old.
32
32
env TOOLCHAIN_GOVERSION='go1.14'
33
33
! exec garble build
34
- stderr 'Go version "go1\.14" is too old; please upgrade to go1\.23\.5 or newer'
34
+ stderr 'Go version "go1\.14" is too old; please upgrade to go1\.24 or newer'
35
35
36
36
# We should reject a future stable version, as we don't have linker patches yet.
37
37
# Note that we need to bump the version of Go that supposedly built it, too.
@@ -41,39 +41,39 @@ env TOOLCHAIN_GOVERSION='go1.28.2'
41
41
stderr 'Go version "go1\.28\.2" is too new; Go linker patches aren''t available for go1\.25 or later yet'
42
42
43
43
# We should accept custom devel strings.
44
- env TOOLCHAIN_GOVERSION='devel go1.23 .5-somecustomversion'
44
+ env TOOLCHAIN_GOVERSION='devel go1.24 .5-somecustomversion'
45
45
! exec garble build
46
46
stderr 'mocking the real build'
47
47
48
48
# The current toolchain may be older than the one that built garble.
49
- env GARBLE_TEST_GOVERSION='go1.23 .22'
50
- env TOOLCHAIN_GOVERSION='go1.23 .21'
49
+ env GARBLE_TEST_GOVERSION='go1.24 .22'
50
+ env TOOLCHAIN_GOVERSION='go1.24 .21'
51
51
! exec garble build
52
52
stderr 'mocking the real build'
53
53
54
54
# The current toolchain may be equal to the one that built garble.
55
- env GARBLE_TEST_GOVERSION='go1.23 .25'
56
- env TOOLCHAIN_GOVERSION='go1.23 .25'
55
+ env GARBLE_TEST_GOVERSION='go1.24 .25'
56
+ env TOOLCHAIN_GOVERSION='go1.24 .25'
57
57
! exec garble build
58
58
stderr 'mocking the real build'
59
59
60
60
# The current toolchain must not be newer than the one that built garble.
61
61
env GARBLE_TEST_GOVERSION='go1.18'
62
- env TOOLCHAIN_GOVERSION='go1.23 .25'
62
+ env TOOLCHAIN_GOVERSION='go1.24 .25'
63
63
! exec garble build
64
- stderr 'garble was built with "go1\.18" and can''t be used with the newer "go1\.23 \.25"; rebuild '
64
+ stderr 'garble was built with "go1\.18" and can''t be used with the newer "go1\.24 \.25"; rebuild '
65
65
66
66
# We'll error even if the difference is a minor (bugfix) level.
67
67
# In practice it probably wouldn't matter, but in theory it could still lead to tricky bugs.
68
- env GARBLE_TEST_GOVERSION='go1.23 .11'
69
- env TOOLCHAIN_GOVERSION='go1.23 .14'
68
+ env GARBLE_TEST_GOVERSION='go1.24 .11'
69
+ env TOOLCHAIN_GOVERSION='go1.24 .14'
70
70
! exec garble build
71
- stderr 'garble was built with "go1\.23 \.11" and can''t be used with the newer "go1\.23 \.14"; rebuild '
71
+ stderr 'garble was built with "go1\.24 \.11" and can''t be used with the newer "go1\.24 \.14"; rebuild '
72
72
73
73
# If garble builds itself and is then used, it won't know what version built it.
74
74
# As a fallback, we drop the comparison against the toolchain's version.
75
75
env GARBLE_TEST_GOVERSION='bogus version'
76
- env TOOLCHAIN_GOVERSION='go1.23 .25'
76
+ env TOOLCHAIN_GOVERSION='go1.24 .25'
77
77
! exec garble build
78
78
stderr 'mocking the real build'
79
79
-- go.mod --
0 commit comments