build: force modules at the travis script level

This commit is contained in:
Olaoluwa Osuntokun 2018-11-29 21:40:47 -08:00
parent 1483af79da
commit 9e5ba86cef
No known key found for this signature in database
GPG Key ID: CE58F7F8E20FD9A2
2 changed files with 2 additions and 2 deletions

@ -27,7 +27,7 @@ install:
- export PATH=$PATH:$PWD/linux-amd64/ - export PATH=$PATH:$PWD/linux-amd64/
script: script:
- env GO111MODULE=on - export GO111MODULE=on
# Common for all builds. # Common for all builds.
- make btcd - make btcd

@ -177,7 +177,7 @@ fmt:
lint: $(LINT_BIN) lint: $(LINT_BIN)
@$(call print, "Linting source.") @$(call print, "Linting source.")
GO111MODULE=off $(LINT_BIN) --install 1> /dev/null GO111MODULE=off $(LINT_BIN) --install 1> /dev/null
GO111MODULE=on test -z "$$($(LINT))" test -z "$$($(LINT))"
list: list:
@$(call print, "Listing commands.") @$(call print, "Listing commands.")