summaryrefslogtreecommitdiff
path: root/roles/pipeliner/templates
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-09-07 13:38:32 +0100
committerNick White <git@njw.name>2020-09-07 13:38:32 +0100
commit9cbdd70c176b7ab11eea795a60c12caebe5ece9c (patch)
tree6f48274e0ff30cceaa8fe63445bd4cc771c2e5f7 /roles/pipeliner/templates
parent00afe20fac63f48fbe48ff0136949d779c0d5237 (diff)
Switch from using 'go get -u' to git pull & go install
I didn't realise that 'go get -u' caused all dependencies to be updated to their latest versions! This is clearly a very bad thing to do for reproducibility. Both the initial setup and the update script were affected.
Diffstat (limited to 'roles/pipeliner/templates')
-rw-r--r--roles/pipeliner/templates/updatepipeline.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/pipeliner/templates/updatepipeline.j2 b/roles/pipeliner/templates/updatepipeline.j2
index aabfa1a..5b76f9a 100644
--- a/roles/pipeliner/templates/updatepipeline.j2
+++ b/roles/pipeliner/templates/updatepipeline.j2
@@ -5,8 +5,8 @@ t="/home/{{ ansible_user }}/trainings"
# 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"
-cd "$g/src/rescribe.xyz/bookpipeline" # this is allowed to fail if a module dependency changed
-GO111MODULE=on go get -u rescribe.xyz/bookpipeline/... && \
+cd "$g/src/rescribe.xyz/bookpipeline" && \
+git pull && \
GO111MODULE=on go install ./... && \
sudo cp "$g/bin/bookpipeline" /usr/local/bin/ || exit 1