Skip to content

Commit

Permalink
Remove mod=vendor from GOFLAGS in set_env
Browse files Browse the repository at this point in the history
  • Loading branch information
daved committed Mar 20, 2023
1 parent c332121 commit da19f70
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions activestate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ constants:
- name: SET_ENV
description: The environment settings used throughout our project
value: |
GOFLAGS='-mod=vendor'
GOPATH="${GOPATH:=`go env GOPATH`}"
GOROOT="${GOROOT:=`go env GOROOT`}"
export CGO_ENABLED=0
Expand All @@ -49,17 +48,10 @@ scripts:
language: bash
if: ne .Shell "cmd"
value: |
oldGOFLAGS="${GOFLAGS}"
# Strip mod flag to search original repos for source rather than being
# restricted to the vendor dir.
if [ -z ${CI+x} ]; then
export GOFLAGS="$(echo ${GOFLAGS} | sed 's#-mod=vendor \?##')"
fi
if ! type "gozip" &> /dev/null; then
echo "gozip was not found on your PATH, installing .."
go install github.com/ActiveState/gozip/cmd/gozip@e455986
fi
export GOFLAGS="${oldGOFLAGS}"
- name: install-deps-dev
language: bash
if: ne .Shell "cmd"
Expand Down

0 comments on commit da19f70

Please sign in to comment.