generated from alex/base-template
fix(crystal): install stdlib at $ORIGIN-relative path so the compiler can find it #61
No reviewers
Labels
No labels
dependencies
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
alex/runner-image!61
Loading…
Reference in a new issue
No description provided.
Delete branch "pi/issue60-1792337721250"
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?
Fixes #60
The Crystal binary resolves its stdlib and libgc relative to its own location (
$ORIGIN/../share/crystal/srcand$ORIGIN/../lib/crystal). Since the binary is copied to/usr/local/bin, it looks in/usr/local/share/crystal/src— but the Containerfile placed the stdlib at/usr/share/crystal, so the compiler always failed withError: can't find file 'prelude', which agents reported as "the Crystal stdlib is missing in this sandbox".Changes
/usr/local/share/crystaland libgc to/usr/local/lib/crystal, matching the binary's$ORIGIN-relative lookup paths.crystal runof a one-liner printing "stdlib ok") so a broken stdlib fails the image build instead of surfacing later in agent runs.Verification
can't find file 'prelude').crystal --version,crystal run, andcrystal buildall succeed using the exact binaries/files copied by the Containerfile.