We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2db75de commit 002e34cCopy full SHA for 002e34c
script/generate.sh
@@ -6,6 +6,11 @@ set -e
6
7
CDPATH="" cd -- "$(dirname -- "$0")/.."
8
9
+# force 1.22.0 default and "auto" toolchain (i.e., use the toolchain directive)
10
+# when running generate and mod tidy
11
+GOTOOLCHAIN="go1.22.0+auto"
12
+export GOTOOLCHAIN
13
+
14
if [ "$1" = "--check" ]; then
15
GENTEMP="$(mktemp -d)"
16
git worktree add -q --detach "$GENTEMP"
@@ -43,6 +48,6 @@ for dir in $MOD_DIRS; do
43
48
(
44
49
cd "$dir"
45
50
go generate ./...
46
- GOTOOLCHAIN="go1.22+auto" go mod tidy
51
+ go mod tidy
47
52
)
53
done
0 commit comments