summaryrefslogtreecommitdiff
path: root/roles/pipeliner/tasks/pipeline.yml
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/tasks/pipeline.yml
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/tasks/pipeline.yml')
-rw-r--r--roles/pipeliner/tasks/pipeline.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/pipeliner/tasks/pipeline.yml b/roles/pipeliner/tasks/pipeline.yml
index 9eaa5b9..61becfb 100644
--- a/roles/pipeliner/tasks/pipeline.yml
+++ b/roles/pipeliner/tasks/pipeline.yml
@@ -36,7 +36,7 @@
- name: Get and build bookpipeline and dependencies
shell:
- cmd: GOPATH=/home/{{ ansible_user }}/src/go GO111MODULE=on go get -u rescribe.xyz/bookpipeline/...
+ cmd: GOPATH=/home/{{ ansible_user }}/src/go GO111MODULE=on go install rescribe.xyz/bookpipeline/...
chdir: /home/{{ ansible_user }}/src/go/src/rescribe.xyz/bookpipeline
become: no
# command fails because of a strange error with environment, resulting in
@@ -45,7 +45,7 @@
# we should be able to revert back to command once using a more recent
# go version where GO111MODULE is not required.
# command:
-# cmd: go get -u rescribe.xyz/bookpipeline/...
+# cmd: go install rescribe.xyz/bookpipeline/...
# chdir: /home/{{ ansible_user }}/src/go/src/rescribe.xyz/bookpipeline
# environment:
# GOPATH: /home/{{ ansible_user }}/src/go