Repository navigation
feat: install vgv_ai from Homebrew or a shell script - #116
Closed
unicoderbot[bot] wants to merge 1 commit into
Closed
unicoderbot[bot] wants to merge 1 commit into
unicoderbot[bot] wants to merge 1 commit into
Conversation
Closes #113 Co-authored-by: marcossevilla <marcossevilla@users.noreply.github.com>
5 tasks
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.
Warning
The coding agent reported this implementation is incomplete.
Homebrew publishing needs the VeryGoodOpenSource/homebrew-tap repo and a HOMEBREW_TAP_TOKEN secret, which don't exist yet.
This PR has been opened as a draft. Review the diff against the original issue before marking it ready for review.
Summary
vgv_aicould only be installed withdart pub global activate, which requires the Dart SDK 3.13+. This PR adds two install paths that use prebuilt binaries and don't need Dart, and makes the CLI aware of how it was installed.brew install verygoodopensource/tap/vgv_ai) andinstall.sh, which picks the binary for the OS and arch, checks the SHA-256 checksum, and installs to~/.local/binor a directory you choose. pub.dev stays supported.vX.Y.Zrelease compilesvgv_aiwithdart compile exefor macOS and Linux on arm64 and x64, and attaches the archives and checksums to the GitHub release. The workflow then regenerates the Homebrew formula inVeryGoodOpenSource/homebrew-tapand pushes it.CliInstallationis injected into the command runner andUpdateCommand. It usesPlatform.resolvedExecutableto tell pub.dev, Homebrew andinstall.shinstalls apart.dart pub global activate.brew upgrade verygoodopensource/tap/vgv_ai.install.shinstall is told to rerun the script, passing the install directory when it isn't the default.updatesection explains the per-install behavior.AGENTS.mdandCONTRIBUTING.mddescribe the injectedCliInstallationand the binary and Homebrew release flow.Notes
HOMEBREW_TAP_TOKENsecret, which needs to be configured with push access toVeryGoodOpenSource/homebrew-tap.updatefor Homebrew and script installs. They check thatupdatenames the command, doesn't call pub, and does nothing when already on the latest version.Closes #113