Skip to content

Commit

Permalink
Add mod mode to all go command calls
Browse files Browse the repository at this point in the history
Signed-off-by: Knut Ahlers <knut@ahlers.me>
  • Loading branch information
Luzifer committed Jul 10, 2019
1 parent e48574a commit 69b2a77
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SHA256SUMS
@@ -1,2 +1,2 @@
05e4977d541b2ef07c757acca912b7b58b379fb425eceb3a1f53c829a78a4aa4 docker2aci.sh
3bd53a160e3ccd6e88df65dfcdac20430f4c8918520d2ce34664094d976ef1b6 golang.sh
7ba45cbdc4ec5dd1c45767d9df1df283bc1a90af83acaeb5c146821d0c16298b golang.sh
10 changes: 8 additions & 2 deletions golang.sh
Expand Up @@ -35,8 +35,14 @@ go get github.com/mitchellh/gox
popd

step "Test code"
go vet ${PACKAGES}
go test ${PACKAGES}
test_params=()

if [[ -n ${MOD_MODE} ]]; then
test_params+=(-mod="${MOD_MODE}")
fi

go vet "${test_params[@]}" ${PACKAGES}
go test "${test_params[@]}" ${PACKAGES}

step "Cleanup build directory if present"
rm -rf ${BUILD_DIR}
Expand Down

0 comments on commit 69b2a77

Please sign in to comment.