mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #6194 from heyitsanthony/fix-gofail
build: don't override gopath by default, demote old gopath on override
This commit is contained in:
commit
28b797b538
11
build
11
build
@ -39,14 +39,15 @@ etcd_build() {
|
||||
}
|
||||
|
||||
etcd_setup_gopath() {
|
||||
export GOPATH=${CDIR}/gopath
|
||||
rm -f $GOPATH/src
|
||||
mkdir -p $GOPATH
|
||||
ln -s ${CDIR}/cmd/vendor $GOPATH/src
|
||||
etcdGOPATH=${CDIR}/gopath
|
||||
# preserve old gopath to support building with unvendored tooling deps (e.g., gofail)
|
||||
export GOPATH=${etcdGOPATH}:$GOPATH
|
||||
rm -f ${etcdGOPATH}/src
|
||||
mkdir -p ${etcdGOPATH}
|
||||
ln -s ${CDIR}/cmd/vendor ${etcdGOPATH}/src
|
||||
}
|
||||
|
||||
toggle_failpoints
|
||||
etcd_setup_gopath
|
||||
|
||||
# don't build when sourced
|
||||
(echo "$0" | grep "/build$" > /dev/null) && etcd_build || true
|
||||
|
Loading…
x
Reference in New Issue
Block a user