Skip to content

Commit 25d9507

Browse files
committed
Fix buildkite static-stack action.
The glob substitution was run _before_ the script, so that the `cd static-stack` was not applied and thus the path was invalid.
1 parent 6e6ab1d commit 25d9507

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.buildkite/pipeline.yml

+1-9
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,4 @@ steps:
4848
# Stack via stack2nix
4949

5050
- label: static-stack
51-
# TODO: Remove the override of unix-compat below once that's available in stack
52-
command: |
53-
set -eu -o pipefail
54-
55-
cd static-stack/
56-
mkdir -p static-stack-test-dir
57-
curl -L https://github.com/commercialhaskell/stack/archive/v2.7.1.tar.gz | tar -xz -C static-stack-test-dir
58-
59-
$(nix-build --no-link -A fullBuildScript --argstr stackDir $PWD/static-stack-test-dir/stack-*)
51+
command: "cd static-stack && ./build-static-stack.sh"

static-stack/build-static-stack.sh

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#! /usr/bin/env bash
2+
3+
set -eu -o pipefail
4+
5+
mkdir -p static-stack-test-dir
6+
curl -L https://github.com/commercialhaskell/stack/archive/v2.7.1.tar.gz | tar -xz -C static-stack-test-dir
7+
8+
$(nix-build --no-link -A fullBuildScript --argstr stackDir $PWD/static-stack-test-dir/stack-*)

0 commit comments

Comments
 (0)