fix: install altimate-code from npm instead of GitHub Release binaries#5
Open
anandgupta42 wants to merge 1 commit intomainfrom
Open
fix: install altimate-code from npm instead of GitHub Release binaries#5anandgupta42 wants to merge 1 commit intomainfrom
anandgupta42 wants to merge 1 commit intomainfrom
Conversation
The previous approach downloaded standalone binaries from GitHub Releases, which don't include NAPI native dependencies like `@altimateai/altimate-core`. This caused v0.5.10 to silently fail (graceful degradation to regex-only mode). Switch to `npm install -g altimate-code` which is the officially supported install method. npm correctly resolves all dependencies including the platform-specific NAPI binaries via the wrapper package. Benefits: - Matches the documented install method in the README - Automatically gets `@altimateai/altimate-core` and platform binaries - No more architecture/OS detection shell logic - No more GitHub API calls for version resolution - Simpler action.yml (removed ~40 lines of download/extract/cache logic) Trade-off: npm install takes ~10s vs cached binary lookup (~0s on cache hit). The cache step was removed since npm has its own caching and the install is fast enough for CI. Co-Authored-By: Claude Opus 4.6 (1M context) <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
npm install -g altimate-codeWhy
The standalone binary approach doesn't include NAPI native dependencies (
@altimateai/altimate-core). This caused v0.5.10 to silently degrade to regex-only mode in CI. The npm package correctly resolves all platform-specific dependencies.Test plan
npm install -g altimate-codeworks on ubuntu-latest runneraltimate-code check --helpis available after install🤖 Generated with Claude Code