Repository navigation
2.8.1: an installer that needs neither npm nor git, and docs that stop recommending the github: spec - #91
Merged
Conversation
Automated verification
typechecktestsbuild |
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.
Closes the gap the clean-machine test found: the documented
github:install does not work.What changed
install.sh— downloads the release tarball, unpacks it under~/.local/share/opencode-antigravity-auth/, and adds the entry toopencode.json. Only needscurlandtar: no npm, no git, no build step. Optional version argument, honoursOPENCODE_ANTIGRAVITY_HOMEandXDG_CONFIG_HOME, keeps other config keys, replaces a previous entry for this plugin, and writes toplugin(v1) orplugins(v2) depending on the config and the installed version.github:spec is not an option, with the reproduction scope.git dep preparation failed; the "worked yesterday" advice now pins through the installer instead of agithub:tag.github:spec still built the plugin on install.Evidence
Reproduced from a clean Debian 12 container with a fresh OpenCode from the official installer (1.19.5), and on 2.2.6:
opencode plugin github:JoshRob297/opencode-antigravity-auth→Could not install … git dep preparation failedgithub:NoeFabris/opencode-antigravity-auth, so it is the installer, not this packagenpm i github:…) installs the same spec and runsprepare— 47 packages,dist/index.jsbuiltopencode plugin <tarball>is rejected by design: "must be an npm registry package or Git package specifier"install.shwas run end-to-end in that container against v2.8.0: files land,dist/index.jspresent, config written; and against a v2-style config it preserves$schema,modelandtheme, replaces the stalegithub:entry and uses thepluginskey.tsc --noEmitclean,npm test1172 passed.