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 991a341 commit 76d1d46Copy full SHA for 76d1d46
script/generate.sh
@@ -6,6 +6,10 @@ 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
+export GOTOOLCHAIN="go1.22.0+auto"
12
+
13
if [ "$1" = "--check" ]; then
14
GENTEMP="$(mktemp -d)"
15
git worktree add -q --detach "$GENTEMP"
@@ -43,6 +47,6 @@ for dir in $MOD_DIRS; do
43
47
(
44
48
cd "$dir"
45
49
go generate ./...
46
- GOTOOLCHAIN="go1.22+auto" go mod tidy
50
+ go mod tidy
51
)
52
done
0 commit comments