Repository navigation
fix(plugin): install the release asset over a shipped launcher, and name the build without one - #1050
Merged
Merged
Conversation
…ame the build without one `pixel install github:Pixel-CLI/pixel-recall` reported "installed" while the first `pixel recall` failed: the repository commits `bin/pixel-recall`, a launcher that only finds a separately built binary, so `add` saw the program present, never asked the release for `pixel-recall-<target>` (which the plugin's README and launcher expect to replace it), and printed nothing about a build. A github: source now always tries the release asset for `run`. The download lands beside `run` and replaces it only once checked, so a failed or rejected download leaves the shipped file intact. Without an asset, a shipped program stays (Binary::Shipped) and the report prints the `cargo install --git … --root <plugin> --force` command that builds it into the plugin; an unshipped one is Binary::Missing as before.
This was referenced Oct 17, 2026
LivioGama
pushed a commit
that referenced
this pull request
Nov 25, 2026
…ame the build without one (#1050) `pixel install github:Pixel-CLI/pixel-recall` reported "installed" while the first `pixel recall` failed: the repository commits `bin/pixel-recall`, a launcher that only finds a separately built binary, so `add` saw the program present, never asked the release for `pixel-recall-<target>` (which the plugin's README and launcher expect to replace it), and printed nothing about a build. A github: source now always tries the release asset for `run`. The download lands beside `run` and replaces it only once checked, so a failed or rejected download leaves the shipped file intact. Without an asset, a shipped program stays (Binary::Shipped) and the report prints the `cargo install --git … --root <plugin> --force` command that builds it into the plugin; an unshipped one is Binary::Missing as before.
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.
Closes #1045
Summary
For a
github:source,pixel installnow fetches the release assetpixel-<name>-<target>even when the repository ships a file atrun(the launcher the Pixel-CLI plugins commit), and replaces it only after the sha256 check. Without an asset it no longer prints a bare success: a newBinary::Shippedoutcome says the repository's ownrunstays and prints thecargo install --git … --root <plugin dir> --forcethat builds the program into place.Evidence
pixel install github:Pixel-CLI/pixel-recall→installed plugin recall 0.1.0; nextpixel recall status→the recall plugin has no pixel-recall binary installed.cargo test -p pixel-plugin --lib→ 138 passed, 4 new:a_release_asset_replaces_the_launcher_the_repository_ships,without_a_release_asset_a_shipped_launcher_stays_and_the_build_is_named,a_rejected_asset_leaves_the_shipped_launcher_in_place,a_local_source_runs_what_it_ships_without_asking_a_release. With the oldfetch.rsrestored, 3 of them fail.cargo test -p pixel-cli --test cli plugin_cli::→ 34 passed, includinginstall_github_runs_the_release_asset_over_a_shipped_launcher(end to end: the plugin runs the asset, not the launcher);cargo test -p pixel-cli --bin pixel plugin_cmd→ 10 passed;docs_drift::→ 27 passed; fmt andclippy -p pixel-plugin -p pixel-cli --all-targets -D warningsclean.--forcechecked locally: without it cargo refuses to overwrite the launcher.Merge Danger
Door: two-way: a revert restores the old detection; a plugin already installed keeps whichever file it has.
Blast radius: install. Every
pixel install github:…now makes one release request even whenrunis shipped; a bad merge could replace a shipped program with a mismatched asset (the digest check and rename-after-check guard that).Still needed outside this repository: a release tag on Pixel-CLI/pixel-recall, pixel-telemetry and pixel-git (their
release.ymlalready publishes the assets and.sha256).Docs touched
.github/changelog.d/plugin-asset-over-launcher.fixed.md;ARCHITECTURE.md(pixel-pluginrow andpixel install);docs/threat-model.md(the release download now also runs whenrunis shipped).Need help on this PR? Tag
@codesmith-botwith what you need.