aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-07-03 23:19:12 +0100
committerChristopher Baines <mail@cbaines.net>2018-07-04 10:03:43 +0100
commit954cf7fcdba099fd849dc9de57138313bf1d229d (patch)
tree0d1ec45402ec1a7e7de0b674af39c297354cb9d3 /app
parentc1b4bf80f947c8698cc917f13ef1497569785c9c (diff)
downloadgovuk-mini-environment-admin-954cf7fcdba099fd849dc9de57138313bf1d229d.tar
govuk-mini-environment-admin-954cf7fcdba099fd849dc9de57138313bf1d229d.tar.gz
Use bash from Guix when fetching revisions remotely
Diffstat (limited to 'app')
-rw-r--r--app/jobs/govuk_guix/fetch_revision_job.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/jobs/govuk_guix/fetch_revision_job.rb b/app/jobs/govuk_guix/fetch_revision_job.rb
index 63a1f04..42177ff 100644
--- a/app/jobs/govuk_guix/fetch_revision_job.rb
+++ b/app/jobs/govuk_guix/fetch_revision_job.rb
@@ -35,6 +35,10 @@ class GovukGuix::FetchRevisionJob < Que::Job
sha = fetch_and_checkout(commit_hash, remote_host)
command = [
+ # Use bash from Guix if running remotely, as bash on Ubuntu
+ # seems to handle grouping arguments differently, which breaks
+ # guix-pre-inst-env
+ *(remote_host.nil? ? [] : '/home/ubuntu/.guix-profile/bin/bash'),
"#{@repository_directory}/guix-pre-inst-env",
'guix',
'build',