File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -20,19 +20,18 @@ function compile_check {
20
20
# Change the directory to the compilecheck test directory.
21
21
cd ${COMPILE_CHECK_DIR}
22
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
+
23
29
# Test vendoring
24
30
go mod vendor
25
31
${GC} build -mod=vendor
26
32
27
33
rm -rf vendor
28
34
29
- MACHINE_VERSION=` ${GC} version | { read _ _ v _; echo ${v# go} ; }`
30
-
31
- # If the version is not 1.13, then run "go mod tidy"
32
- if [ $( version $MACHINE_VERSION ) -ge $( version 1.15) ]; then
33
- go mod tidy
34
- fi
35
-
36
35
# Check simple build.
37
36
${GC} build ./...
38
37
You can’t perform that action at this time.
0 commit comments