GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Plugin loader incorrectly appends @latest to GitHub references · Issue #8763 · anomalyco/opencode Closed DescriptionDescriptionWhen using a GitHub-hosted plugin like Root CauseIn const lastAtIndex = plugin.lastIndexOf("@") const pkg = lastAtIndex > 0 ? plugin.substring(0, lastAtIndex) : plugin const version = lastAtIndex > 0 ? plugin.substring(lastAtIndex + 1) : "latest" plugin = await BunProc.install(pkg, version) // becomes pkg + "@" + version This creates Bun's GitHub Dependency FormatAccording to Bun documentation, GitHub dependencies use {
"lodash": "git+ssh://github.com/lodash/lodash.git#4.17.21",
"zod": "github:colinhacks/zod"
}The Reproductionbun add "github:lodash/lodash@latest" # error: GET https://api.github.com/repos//latest/tarball/ - 404 bun add "github:lodash/lodash" # Success - installs from default branch bun add "github:lodash/lodash#main" # Success - installs from main branch Suggested FixCheck if the plugin string starts with const isGitDependency = plugin.startsWith("github:") || plugin.startsWith("git+") || plugin.startsWith("git://") if (isGitDependency) { // Don't append @latest for git dependencies // Or use # instead: pkg + "#" + version plugin = await BunProc.install(pkg, undefined) } else { plugin = await BunProc.install(pkg, version) } WorkaroundPublish the plugin to npm registry instead of using GitHub reference. Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |