Skip to content

Commit 47e5e4f

Browse files
committed
.travis: don't call go get if there is go.mod
when enable go module, go get will update the required version. It is not supported to run in CI. More info: golang/go#27643. Signed-off-by: Wei Fu <[email protected]>
1 parent 7a6a229 commit 47e5e4f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.travis.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ go:
44
- "1.12.x"
55

66
install:
7-
- go get -u github.com/vbatts/git-validation
8-
- go get -u github.com/kunalkushwaha/ltag
9-
- go get -t ./...
7+
# Don't change local go.{mod, sum} by go get tools.
8+
#
9+
# ref: https://github.com/golang/go/issues/27643
10+
- pushd ..; go get -u github.com/vbatts/git-validation; popd
11+
- pushd ..; go get -u github.com/kunalkushwaha/ltag; popd
1012

1113
before_script:
1214
- pushd ..; git clone https://github.com/containerd/project; popd

0 commit comments

Comments
 (0)