Repository navigation
Conversation
cargo-binstall does not provide the `bin` key when rendering `pkg-url` (it is only available in `bin-dir`), so the template failed to render with "missing key `bin`" and binstall fell back to building from source. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016hAmeogg6mbXfzreR2EJUM
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.
cargo binstall rustic-rscurrently can't find any of the prebuilt release binaries, on any target, and falls back to compiling from source.The
pkg-urltemplate uses{ bin }, but cargo-binstall doesn't providebinwhen renderingpkg-url. It's only set when renderingbin-dir, once per binary (see theContextinbinstalk-fetchers/src/gh_crate_meta.rs). Every candidate URL fails with:{ name }won't work either, because it would expand torustic-rswhile the assets are namedrustic-v…. So this PR writes the asset prefix out literally:Testing
I ran
cargo binstall --dry-run --disable-strategies compile,quick-install --manifest-path Cargo.toml --targets <target> rustic-rswith cargo-binstall 1.x:missing key 'bin', thenFallback to cargo-install is disabledx86_64-unknown-linux-gnu,armv7-unknown-linux-gnueabihfandx86_64-pc-windows-msvcall resolve to the v0.11.4 release asset, withVerified signature for package 'rustic-rs': Signed by rustic MaintainersI also installed the armv7 binary on a real armv7 machine using the same template passed through
--pkg-url, andrustic --versionworks.🤖 Generated with Claude Code
https://claude.ai/code/session_016hAmeogg6mbXfzreR2EJUM