termux_go_get
: Do not override $GOPATH
This commit is contained in:
parent
55ebd77645
commit
b8037128f3
@ -10,6 +10,7 @@ TERMUX_PKG_BUILD_IN_SRC=true
|
||||
|
||||
termux_step_make() {
|
||||
termux_setup_golang
|
||||
export GOPATH=$TERMUX_PKG_SRCDIR/go
|
||||
termux_go_get
|
||||
go build \
|
||||
-o hugo \
|
||||
|
@ -43,10 +43,12 @@ termux_setup_golang() {
|
||||
|
||||
termux_go_get() {
|
||||
if $TERMUX_ON_DEVICE_BUILD; then
|
||||
if $TERMUX_PKG_BUILD_IN_SRC; then
|
||||
export GOPATH=$TERMUX_PKG_SRCDIR/go
|
||||
else
|
||||
export GOPATH=$TERMUX_PKG_BUILDDIR/go
|
||||
if [ -z ${GOPATH+x} ]; then
|
||||
if $TERMUX_PKG_BUILD_IN_SRC; then
|
||||
export GOPATH=$TERMUX_PKG_SRCDIR/go
|
||||
else
|
||||
export GOPATH=$TERMUX_PKG_BUILDDIR/go
|
||||
fi
|
||||
fi
|
||||
if [ -d $TERMUX_PKG_CACHEDIR/go ]; then
|
||||
cp $TERMUX_PKG_CACHEDIR/go $GOPATH -r
|
||||
|
Loading…
Reference in New Issue
Block a user