feat: Installation Strategy Redesign - #15
Merged
Merged
Conversation
This was
linked to
issues
Jun 26, 2026
Closed
While json.sh worked decently for reading json files, I didn't want to implement writing to json files as well and make it completely unreadable due to the added complexity. So, I think its better to just use jq and keep things relatively simple with the tradeoff of a lightweight dependency
bat and yazi installers use latest binary releases from github over package manager for arch and fedora
Remove the configure shell code blocks
- Using $BOOTSTRAP_BIN, $BOOTSTRAP_OPT, etc - Add defensive fallback for undefined vars in common.sh
Owner
Author
|
Bootstrap is now using XDG Compliant and Isolated directory structure Environment Variables
closes #18 |
`pkg_install` and `pkg_remove` are just wrappers that map aliases and directly invooke the system package manager. - They do not manage state or inject rollback commands
- Removed `BOOTSTRAP_PACKAGES_DIR` b rb <tool> can now uninstall that particular tool
Owner
Author
|
Improved rollback command to also act as an uninstall command for individual tools. (closes #19)
|
- If multiple uninstalled tools share a system dependency, the dependency is only uninstalled once the last tool using it is removed.
sortedcord
marked this pull request as ready for review
June 28, 2026 02:21
…d Update add_installer skill
Update hyperfine installer to follow the new installer strategy redesign Update registry
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.
feat: Installation Strategy Redesign
This PR redesigns Bootstrap's installation system around explicit installation strategies, introducing a centralized registry, standardized GitHub release downloads, simplified package management, and a fully unified installation/uninstallation workflow.
The new architecture removes a significant amount of legacy compatibility code while making installers simpler, safer, and easier to extend.
Changes
Registry Infrastructure
Add
lib/registry.shthat provides:ensure_registryregistry.jsonexists.{ "tools": {} }if it does not already exist.registry_set <jq_filter> [args...]flock -x 200to acquire an exclusive lock onregistry.json.lockbefore executing thejqfilter.register_tool <tool_name> <strategy> [version] [source]binarystrategy tools.registry_add_sys_deps <tool_name> <dep1> <dep2>...registry_remove_tool <tool_name>registry_get_sys_deps <tool_name>registry_check <tool_name>binarymanagedcommand -v.systempkg_check, falling back tocommand -vwhen no dependencies are recorded.Returns
0if all checks pass, otherwise1.GitHub Release Helper
Add a shared
lib/github.shhelper to standardize downloading the latest GitHub release binary.github_download_binary \ "owner/repo" \ "asset_pattern" \ "$dest"Migrate installers to use the shared helper instead of duplicating GitHub release logic.
Installer Migration
batandyazi).Package Management
pkg_installandpkg_remove.systemstrategy dependencies.Uninstallation & Rollback
b rb <tool>can now uninstall individual tools.pkg_remove.XDG Directory Layout
BOOTSTRAP_DIR~/.config/bootstrapBOOTSTRAP_DATA_DIR~/.local/share/bootstrapBOOTSTRAP_STATE_DIR~/.local/state/bootstrapBOOTSTRAP_CACHE_DIR~/.cache/bootstrapBOOTSTRAP_BIN$BOOTSTRAP_DATA_DIR/binBOOTSTRAP_OPT$BOOTSTRAP_DATA_DIR/optBOOTSTRAP_RUNTIMES$BOOTSTRAP_DATA_DIR/runtimesBOOTSTRAP_PACKAGES_DIR.Other Changes
lib/json.shwithjq.Closes
Closes #1
Closes #9
Closes #14
Closes #16
Closes #18
Closes #19