Run go get after restoring cache

While updating packages, dependency versions may have changed
This commit is contained in:
Yaksh Bariya 2021-07-05 08:36:22 +05:30
parent 9942832788
commit b109e79c2c
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581

View File

@ -14,10 +14,10 @@ termux_step_pre_configure() {
export GOPATH=$TERMUX_PKG_SRCDIR/go
if [ -d $TERMUX_PKG_CACHEDIR/go ]; then
cp $TERMUX_PKG_CACHEDIR/go $GOPATH -r
go get
else
go get
cp $TERMUX_PKG_SRCDIR/go $TERMUX_PKG_CACHEDIR/go -r
fi
fi
}