File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -41,11 +41,18 @@ runs:
41
41
42
42
# If download failed, we will try to build tip from source.
43
43
# This requires Go toolchain, so install it first.
44
+ - name : Determine latest Go version
45
+ if : steps.download.outputs.success == 'false'
46
+ id : get_go_version
47
+ run : |
48
+ LATEST_GO_VERSION=$(curl -s "https://go.dev/VERSION?m=text")
49
+ echo "LATEST_GO_VERSION=$LATEST_GO_VERSION" >> $GITHUB_OUTPUT
50
+
44
51
- name : Install Go toolchain
45
52
if : steps.download.outputs.success == 'false'
46
53
uses : actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
47
54
with :
48
- go-version : 1.24.x
55
+ go-version : ${{ steps.get_go_version.outputs.LATEST_GO_VERSION }}
49
56
50
57
- name : Build Go Tip from source
51
58
if : steps.download.outputs.success == 'false'
File renamed without changes.
Original file line number Diff line number Diff line change @@ -91,12 +91,15 @@ for file in $(find . -type f -name go.mod | grep -v '^./go.mod'); do
91
91
if [[ $file == " ./idl/go.mod" ]]; then
92
92
continue
93
93
fi
94
+ if [[ $file == " ./idl/internal/tools/go.mod" ]]; then
95
+ continue
96
+ fi
94
97
check " $file " " ^go\s\+$version_regex " " $go_latest_version "
95
98
done
96
99
97
100
check scripts/build/docker/debug/Dockerfile " ^.*golang:$version_regex " " $go_latest_version "
98
101
99
- IFS=' |' read -r -a gha_workflows <<< " $(grep -rl go-version .github | tr '\n' '|')"
102
+ IFS=' |' read -r -a gha_workflows <<< " $(grep -rl go-version .github/workflows | tr '\n' '|')"
100
103
for gha_workflow in " ${gha_workflows[@]} " ; do
101
104
check " $gha_workflow " " ^\s*go-version:\s\+$version_regex " " $go_latest_version "
102
105
done
You can’t perform that action at this time.
0 commit comments