go1.14: set -mod=mod while rebuilding/linting vendor and building licenses, preserve explicit imports in modules.txt

This commit is contained in:
Jordan Liggitt
2020-06-23 16:10:26 -04:00
parent 101653e5e8
commit 660c290bbf
3 changed files with 16 additions and 6 deletions

View File

@@ -134,7 +134,9 @@ process_content () {
# MAIN
#############################################################################
# use modules, and use module info rather than the vendor dir for computing dependencies
export GO111MODULE=on
export GOFLAGS=-mod=mod
# Check bash version
if (( BASH_VERSINFO[0] < 4 )); then