Skip to content

Commit 0676c87

Browse files
committed
Stage build artifacts so Nix flake can see them
Nix flakes only see git-tracked files. Since build/ is gitignored, the pre-built artifacts were invisible to the flake evaluation, causing it to fall through to the stub derivation. Fix by staging with git add -f before nix build.
1 parent df8a181 commit 0676c87

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/build-iso.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ jobs:
4444
npm run build --workspace=services/host-agent/web
4545
cp -r services/host-agent/web/build build/frontend
4646
47+
- name: Stage build artifacts for Nix
48+
run: git add -f build/
49+
4750
- name: Install Nix
4851
uses: cachix/install-nix-action@v27
4952
with:

claude.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ mkdir -p build
200200
cd services/host-agent && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ../../build/host-agent ./cmd/host-agent
201201
cd ../.. && npm ci && npm run build --workspace=services/host-agent/web
202202
cp -r services/host-agent/web/build build/frontend
203+
git add -f build/ # Nix flakes only see git-tracked files
203204
nix build .#packages.x86_64-linux.iso
204205
```
205206

0 commit comments

Comments
 (0)