fix(ci) Remove the packaged contract with rm -rf so a directory install works #16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-contract-packaging-rm"
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?
Problem
Stage run #77, the merge of #15, failed in the packaging step:
On the CI runner,
npm ciinstalls thefile:dependency@recipe/contractas a plain directory copy (npminstall-links), not as the symlink it produces locally. #15's packaging step usedrmwithout-r, which only works on a symlink.This also explains why stage run #75 passed but deployed a backend that couldn't start: the directory copy was shipped, and it had no compiled
dist/.Change
build_stage.yamlandbuild_release.yaml:rm→rm -rf, and the comment now notes that the entry can be either a symlink or a directory. The followingcpstill replaces it with the contract'spackage.jsonand compileddist/.Verification
npm ci --install-links:@recipe/contractbecame a directory. The new packaging lines ran cleanly, and the unpacked tarball, with norecipe-platformnext to it, loaded the contract's runtime constants under plain Node.🤖 Generated with Claude Code