<pre style='margin:0'>
Clemens Lang (neverpanic) pushed a commit to branch master
in repository macports-infrastructure.

</pre>
<p><a href="https://github.com/macports/macports-infrastructure/commit/bb34f93fd3a1e578d22f5a04f717f0f6c269676e">https://github.com/macports/macports-infrastructure/commit/bb34f93fd3a1e578d22f5a04f717f0f6c269676e</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'>     new bb34f93  build_deploy_prbot: Allow overriding path to 'go'
</span>bb34f93 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit bb34f93fd3a1e578d22f5a04f717f0f6c269676e
</span>Author: Clemens Lang <neverpanic@gmail.com>
AuthorDate: Sat Jul 22 15:05:51 2017 +0200

<span style='display:block; white-space:pre;color:#404040;'>    build_deploy_prbot: Allow overriding path to 'go'
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Debian has go 1.7 in backports, but installs it in
</span><span style='display:block; white-space:pre;color:#404040;'>    /usr/lib/go-1.7/bin/go, so provide a way to override the path to the go
</span><span style='display:block; white-space:pre;color:#404040;'>    utility.
</span>---
 jobs/build_deploy_prbot.sh | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/jobs/build_deploy_prbot.sh b/jobs/build_deploy_prbot.sh
</span><span style='display:block; white-space:pre;color:#808080;'>index 6399e36..fc6ed8b 100755
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/jobs/build_deploy_prbot.sh
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/jobs/build_deploy_prbot.sh
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -13,6 +13,10 @@
</span> #
 # To use this script, set $GOPATH in your environment to the absolute path of
 # the go workspace you want to use.
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Additionally, you can set the $GO variable to the path of the go utility.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# This may be helpful if you are trying to use a different version of Go than
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# the one that comes with your operating system.
</span> 
 set -euo pipefail
 
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -21,6 +25,9 @@ if [ -z "${GOPATH:-}" ]; then
</span>   exit 1
 fi
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# Allow overriding the path to the go executable
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+GO=${GO:-go}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> MPBOT_PACKAGE_NAME=github.com/macports/mpbot-github
 MPBOT_GITHUB_SRC=$GOPATH/src/$MPBOT_PACKAGE_NAME
 PRBOT_CURRENT=$GOPATH/bin/prbot-current
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -53,9 +60,9 @@ if [ "$HEADREV" = "$CURRENTREV" ]; then
</span> fi
 
 # Get dependencies
<span style='display:block; white-space:pre;background:#ffe0e0;'>-go get -u "$MPBOT_PACKAGE_NAME/pr/prbot"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+"$GO" get -u "$MPBOT_PACKAGE_NAME/pr/prbot"
</span> # Install
<span style='display:block; white-space:pre;background:#ffe0e0;'>-go install "$MPBOT_PACKAGE_NAME/pr/prbot"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+"$GO" install "$MPBOT_PACKAGE_NAME/pr/prbot"
</span> 
 # Update symlink
 mv "$GOPATH/bin/prbot" "$GOPATH/bin/prbot-$HEADREV"
</pre><pre style='margin:0'>

</pre>