Skip to content

Commit 0080767

Browse files
committed
Fix CI go job when dashboard dist is not embedded
//go:embed all:dist fails on a bare checkout because built assets are gitignored. Track a .gitkeep placeholder and recreate it in CI so test/vet compile without a frontend build.
1 parent 38c1adf commit 0080767

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ jobs:
1717
with:
1818
go-version-file: go.mod
1919
cache: true
20+
# //go:embed all:dist requires at least one file; dashboard assets are
21+
# gitignored and built separately. A tracked .gitkeep is the placeholder;
22+
# recreate it here so a bare checkout never fails the embed.
23+
- name: Ensure embed placeholder
24+
run: mkdir -p internal/server/dist && touch internal/server/dist/.gitkeep
2025
- name: Test
2126
run: go test ./...
2227
- name: Vet

internal/server/dist/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)