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.
go mod tidy
1 parent d2a0f99 commit 0a49689Copy full SHA for 0a49689
etc/compile_check.sh
@@ -20,19 +20,18 @@ function compile_check {
20
# Change the directory to the compilecheck test directory.
21
cd ${COMPILE_CHECK_DIR}
22
23
+ # If the Go version is 1.15 or greater, then run "go mod tidy".
24
+ MACHINE_VERSION=`${GC} version | { read _ _ v _; echo ${v#go}; }`
25
+ if [ $(version $MACHINE_VERSION) -ge $(version 1.15) ]; then
26
+ go mod tidy
27
+ fi
28
+
29
# Test vendoring
30
go mod vendor
31
${GC} build -mod=vendor
32
33
rm -rf vendor
34
- MACHINE_VERSION=`${GC} version | { read _ _ v _; echo ${v#go}; }`
-
- # If the version is not 1.13, then run "go mod tidy"
- if [ $(version $MACHINE_VERSION) -ge $(version 1.15) ]; then
- go mod tidy
- fi
35
36
# Check simple build.
37
${GC} build ./...
38
0 commit comments