Skip to content

Commit 164b70f

Browse files
committed
Fix Stack ownership error in ARM64 Docker builds
Add --allow-different-user flag to all Stack commands in ARM64 builds to handle the ownership mismatch between the host volume mount and the container's root user. This fixes the S-8707 error.
1 parent a6f21b9 commit 164b70f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ jobs:
4343
cd /workspace
4444
# Build
4545
export PATH=/root/.local/bin:$PATH
46-
stack --no-terminal build --test --only-dependencies
46+
stack --allow-different-user --no-terminal build --test --only-dependencies
4747
mkdir -p dist
48-
stack --no-terminal build --test --no-run-tests --copy-bins --local-bin-path dist
48+
stack --allow-different-user --no-terminal build --test --no-run-tests --copy-bins --local-bin-path dist
4949
5050
# Test (skip S3 tests for ARM64 builds)
5151
export SKIP_S3_TESTS=1
52-
stack --no-terminal build --test
52+
stack --allow-different-user --no-terminal build --test
5353
5454
# Package
5555
cd dist

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ jobs:
4949
cd /workspace
5050
# Build
5151
export PATH=/root/.local/bin:$PATH
52-
stack --no-terminal build --test --only-dependencies
52+
stack --allow-different-user --no-terminal build --test --only-dependencies
5353
mkdir -p dist
54-
stack --no-terminal build --test --no-run-tests --copy-bins --local-bin-path dist
54+
stack --allow-different-user --no-terminal build --test --no-run-tests --copy-bins --local-bin-path dist
5555
5656
# Test (skip S3 tests for ARM64 builds)
5757
export SKIP_S3_TESTS=1
58-
stack --no-terminal build --test
58+
stack --allow-different-user --no-terminal build --test
5959
6060
# Package
6161
cd dist

0 commit comments

Comments
 (0)