From 48020c6e284efe49de173d414842b916de9845a7 Mon Sep 17 00:00:00 2001
From: Nick White <git@njw.name>
Date: Tue, 22 Jun 2021 13:51:45 +0100
Subject: Have updatepipeline script only compile and install bookpipeline

As the rescribe tool now does embed stuff, it won't build until a
go generate call is done. So rather than unnecessarily building
all bookpipeline tools, which would fail now, just do bookpipeline.
---
 roles/pipeliner/tasks/pipeline.yml          | 2 +-
 roles/pipeliner/templates/updatepipeline.j2 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

(limited to 'roles')

diff --git a/roles/pipeliner/tasks/pipeline.yml b/roles/pipeliner/tasks/pipeline.yml
index d6674b1..9572c60 100644
--- a/roles/pipeliner/tasks/pipeline.yml
+++ b/roles/pipeliner/tasks/pipeline.yml
@@ -20,7 +20,7 @@
 
 - name: Get and build bookpipeline and dependencies
   command:
-    cmd: go install ./...
+    cmd: go install ./cmd/bookpipeline
     chdir: /home/{{ ansible_user }}/src/bookpipeline
   become: no
 
diff --git a/roles/pipeliner/templates/updatepipeline.j2 b/roles/pipeliner/templates/updatepipeline.j2
index efe04e1..511bd2a 100644
--- a/roles/pipeliner/templates/updatepipeline.j2
+++ b/roles/pipeliner/templates/updatepipeline.j2
@@ -4,7 +4,7 @@ t="/home/{{ ansible_user }}/trainings"
 
 cd "$s/bookpipeline" && \
 git pull && \
-go install ./... && \
+go install ./cmd/bookpipeline && \
 sudo cp "$HOME/go/bin/bookpipeline" /usr/local/bin/ || exit 1
 
 cd "$t" && git pull && \
-- 
cgit v1.2.1-24-ge1ad