Merge pull request #132 from lsm5/custom-go
allow building with custom Go binary
This commit is contained in:
commit
9c36007eea
5
build.sh
5
build.sh
@ -15,6 +15,7 @@ fi
|
|||||||
|
|
||||||
export GO15VENDOREXPERIMENT=1
|
export GO15VENDOREXPERIMENT=1
|
||||||
export GOPATH=${PWD}/gopath
|
export GOPATH=${PWD}/gopath
|
||||||
|
export GO="${GO:-go}"
|
||||||
|
|
||||||
mkdir -p "${PWD}/bin"
|
mkdir -p "${PWD}/bin"
|
||||||
|
|
||||||
@ -27,9 +28,9 @@ for d in $PLUGINS; do
|
|||||||
# use go install so we don't duplicate work
|
# use go install so we don't duplicate work
|
||||||
if [ -n "$FASTBUILD" ]
|
if [ -n "$FASTBUILD" ]
|
||||||
then
|
then
|
||||||
GOBIN=${PWD}/bin go install -pkgdir $GOPATH/pkg "$@" $REPO_PATH/$d
|
GOBIN=${PWD}/bin $GO install -pkgdir $GOPATH/pkg "$@" $REPO_PATH/$d
|
||||||
else
|
else
|
||||||
go build -o "${PWD}/bin/$plugin" -pkgdir "$GOPATH/pkg" "$@" "$REPO_PATH/$d"
|
$GO build -o "${PWD}/bin/$plugin" -pkgdir "$GOPATH/pkg" "$@" "$REPO_PATH/$d"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user