summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-09-01 18:09:21 +0100
committerNick White <git@njw.name>2020-09-01 18:09:21 +0100
commit51188ee4d4cd26db793cc82b6f054fd5c3575e16 (patch)
tree77983213e2977efdeab00f3419d75c5cf10c78ec /roles
parent0df4ccf4bc5c5d80cd0963048897b66390e2de66 (diff)
Ensure that changed modules don't cause updatepipeline to fail
Diffstat (limited to 'roles')
-rw-r--r--roles/pipeliner/templates/updatepipeline.j23
1 files changed, 1 insertions, 2 deletions
diff --git a/roles/pipeliner/templates/updatepipeline.j2 b/roles/pipeliner/templates/updatepipeline.j2
index 43b3c4f..aabfa1a 100644
--- a/roles/pipeliner/templates/updatepipeline.j2
+++ b/roles/pipeliner/templates/updatepipeline.j2
@@ -5,8 +5,7 @@ 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"
-go get -u rescribe.xyz/bookpipeline/... && \
-cd "$g/src/rescribe.xyz/bookpipeline" && \
+cd "$g/src/rescribe.xyz/bookpipeline" # this is allowed to fail if a module dependency changed
GO111MODULE=on go get -u rescribe.xyz/bookpipeline/... && \
GO111MODULE=on go install ./... && \
sudo cp "$g/bin/bookpipeline" /usr/local/bin/ || exit 1