CI Failure: @ast-grep/cli install fails in node:20-bookworm #20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
CI Failure Report
Workflow: build-coder.yml
Commit:
59f0062644Run: https://git.brads.house/commune/sandbox/actions/runs/36
Triage Analysis
Error
Root Cause
PR #19 changed the job container from docker:cli (Alpine) to node:20-bookworm (Debian). Debian Bookworm includes /usr/bin/sg as a system utility (part of shadow package). The npm package @ast-grep/cli attempts to install its own sg binary, causing a conflict.
The build fails at step 4/9 in Dockerfile.coder:
Context
Recommendation
@agent can fix - Add --force flag to overwrite system sg:
In Dockerfile.coder, change:
To:
This will replace the system sg (group password changer) with ast-grep's sg (structural grep), which is the tool intended for development use in the sandbox.
Already fixed in
6b431d5—rm -f /usr/bin/sgbefore the npm install. Closing.