Last active
February 9, 2018 15:40
-
-
Save majewsky/348cac48461a111967ca4e1f403a8673 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/prometheus/PKGBUILD | |
+++ b/prometheus/PKGBUILD | |
@@ -21,6 +21,7 @@ | |
prepare() { | |
cd "$srcdir/$pkgname-$pkgver" || exit 1 | |
export GOPATH="$srcdir/gopath" | |
+ export GOBIN="$GOPATH/bin" | |
mkdir -p "$GOPATH/src/github.com/$pkgname" | |
rm -f "$GOPATH/src/github.com/$pkgname/$pkgname" | |
ln -sr "$srcdir/$pkgname-$pkgver" "$GOPATH/src/github.com/$pkgname/$pkgname" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The PKGBUILD assumes that
$GOBIN
is not set, so the default value for$GOBIN
gets applied. Since I have$GOBIN
set, promu gets installed bymake build
to$GOBIN
rather than to$srcdir/gopath/bin
, and the build subsequently fails to execute promu. By setting GOBIN explicitly, we can avoid this problem.