Repository navigation
Accept the build-directory link of newer Cargo when publishing the image worker - #136
Merged
Merged
Conversation
The private Windows package job now fails after cargo build succeeds: ENOENT: lstat '...cargo-target/canvas-thumbnail-sidecar/release/deps' Cargo publishes the image worker as two hard links. Older Cargo puts the second link in release/deps. The runner's newer Cargo keeps its build artifacts in a build directory instead, so release/deps does not exist. The same log shows the new cargo::unused_dependencies lint. prepareCargoImageWorkerSource still checks release/deps first. If that link is missing, it looks for the second link inside the build's own Cargo target directory, which build-image-worker.mjs passes in. The search follows no symbolic links and compares file ids as bigints, and exactly one other link to the same file must be found there. Anything else is still refused, and the publisher still gets a single-link snapshot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qq9PmGwv8Hc1iHFPsAUfND
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The private Windows package job (MagicPotTeam/MagicPot-Terrarium-Private#340) now fails right after
cargo buildsucceeds:Cause
Cargo publishes the image worker as two hard links. #125 accepts exactly the older layout, where the second link sits at
release/deps/canvas_thumbnail_sidecar.exe.The runner's Cargo has changed since the last package run on 28 October. Its log now shows the new
cargo::unused_dependencieslint, and it keeps build artifacts in a build directory, sorelease/depsno longer exists. Nothing in this repository changed that layout.Change
prepareCargoImageWorkerSourcestill checksrelease/depsfirst.build-image-worker.mjsnow passes in assearchRoot.Checks
scripts/cargo-image-worker-source.test.jsandscripts/build-image-worker.test.js: 62 passed on Windows (NTFS hard links).Generated by Claude Code