aboutsummaryrefslogtreecommitdiff
path: root/app/jobs
diff options
context:
space:
mode:
Diffstat (limited to 'app/jobs')
-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',