Skip to content

Commit

Permalink
travis: temp workaround for 'multiple //go:build comments' error by s…
Browse files Browse the repository at this point in the history
…etting 'go 1.17' directive

Workaround dvyukov#313.

cmd/go should in theory pay attention to the version set in the 'go' directive when interpreting //go:build comments,
  • Loading branch information
thepudds authored May 31, 2021
1 parent 2d92054 commit 7e31160
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,14 @@ script:
- git clone --depth=1 https://github.com/thepudds/go-fuzz-corpus $GOPATH/src/github.com/dvyukov/go-fuzz-corpus
- cd $GOPATH/src/github.com/dvyukov/go-fuzz-corpus/
- cd png
# Create a small module to test the png example.
- go mod init github.com/dvyukov/go-fuzz-corpus/png
- go mod tidy
- go get -d github.com/dvyukov/go-fuzz/go-fuzz-dep
# TODO: temp workaround for 'multiple //go:build comments' error (dvyukov/go-fuzz#313) by setting 'go 1.17' directive.
- go mod edit -go=1.17
- ls -l

# Reduce chances of future surprises due to any caching.
- rm -rf fuzz.zip ./freshworkdir

Expand Down

0 comments on commit 7e31160

Please sign in to comment.