Skip to content

Commit

Permalink
Merge pull request #9368 from mkumatag/fix_gopath_var
Browse files Browse the repository at this point in the history
build: Fix setting gopath
  • Loading branch information
gyuho authored Feb 27, 2018
2 parents f802cd9 + 1ddfade commit 23331f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ etcd_setup_gopath() {
etcdGOPATH="${CDIR}/gopath"
# preserve old gopath to support building with unvendored tooling deps (e.g., gofail)
if [ -n "$GOPATH" ]; then
GOPATH="$GOPATH"
GOPATH=":$GOPATH"
fi
rm -rf "${etcdGOPATH:?}/"
mkdir -p "${etcdGOPATH}/vendor" "${etcdGOPATH}/etcd_src/src/github.com/coreos"
export GOPATH=${etcdGOPATH}/vendor:${etcdGOPATH}/etcd_src:$GOPATH
export GOPATH=${etcdGOPATH}/vendor:${etcdGOPATH}/etcd_src${GOPATH}
ln -s "${CDIR}/vendor" "${etcdGOPATH}/vendor/src"
ln -s "${CDIR}" "${etcdGOPATH}/etcd_src/src/github.com/coreos/etcd"

Expand Down

0 comments on commit 23331f7

Please sign in to comment.