feat: add [[tools.github]] installer type#9
Draft
nilshamerlinck wants to merge 4 commits intomainfrom
Draft
Conversation
Support installing tools from GitHub releases with three modes: - version = "latest-release": auto-resolve to the latest tag via GitHub API - script defined: download and execute install script from raw.githubusercontent.com - script not defined: download binary asset matching the current OS/arch Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
fc247ca to
4c5e3a0
Compare
The old fallback grabbed the first file without an extension (e.g. LICENSE) instead of the actual binary. Now we build a (size, path) list filtered by known text extensions and filenames, and pick the largest candidate — which is always the real binary. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
[[tools.github]]config section for installing tools directly from GitHub releasesodoo_dev.toml) to use the new format for nvmDetails
Config format:
Behaviour:
version = "latest-release"→ calls the GitHub Releases API to resolve the current tag before proceedingscriptdefined → constructshttps://raw.githubusercontent.com/{owner}/{repo}/{version}/{script}and delegates to the existing_install_script()helperscriptnot defined → fetches release assets via the API, picks the one matching the current OS/arch (handles.tar.gz,.tgz,.zip, plain binaries), installs to~/.local/bin/{name}Test plan
make checkpasses (linting + type checks)make testpasses (57 tests)tlc install-tools --dry-runshows GitHub tools section[[tools.github]]withversion = "latest-release"andscript = "install.sh"🤖 Generated with Claude Code