Repository navigation
fix: refetch an installed binary that cannot run on this host; plugin 0.9.1 - #72
Conversation
Trim the change to the runnable check in the bash fetchers: drop the cargo fallback build, the target stamp, node/bun arch detection, the Git Bash branches and the PowerShell changes. Test the shortcut itself with a binary for another OS and an offline release. refs plannotator#54
|
Thanks @emo-eth, and thanks for splitting this out from #54. I pushed a trimmed version onto your branch so we can merge it now. What I kept: the core of your fix. Before the bash fetchers say "already installed", they now run What I trimmed, and why:
|
fetch-herdr-annotate.shandfetch-plannotator-tui.shskip the download whenbin/<name>.exeis executable and its version stamp matches the pin. A plugin directory synced from another machine passes that check with the other machine's binary, so a macOS binary stays in place on Linux.The shortcut now also requires
bin/<name>.exe --versionto succeed. A binary that cannot run on this host falls through to the normal download and SHA256SUMS check.herdr plugin install/update), Lite, Windows Full,stage-local.sh, and theHERDR_ANNOTATE_BIN/PLANNOTATOR_TUI_BINoverrides behave as before.mainand pass here. The herdr-annotate test also checks that a checksum mismatch on this path is still fatal.refs #54