summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--roles/pipeliner/templates/updatepipeline.j26
1 files changed, 5 insertions, 1 deletions
diff --git a/roles/pipeliner/templates/updatepipeline.j2 b/roles/pipeliner/templates/updatepipeline.j2
index d73c2da..0f5b439 100644
--- a/roles/pipeliner/templates/updatepipeline.j2
+++ b/roles/pipeliner/templates/updatepipeline.j2
@@ -2,7 +2,11 @@
g="/home/{{ ansible_user }}/src/go"
t="/home/{{ ansible_user }}/trainings"
-GOPATH="$g" go get -u rescribe.xyz/bookpipeline/... && \
+# The extra go install step ensures that go modules are used
+# (they don't work for the go get stage in go 1.11)
+export GOPATH="$g"
+go get -u rescribe.xyz/bookpipeline/... && \
+cd "$g/src/rescribe.xyz/bookpipeline" && go install ./... && \
sudo cp "$g/bin/bookpipeline" /usr/local/bin/ || exit 1
cd "$t" && git pull && \