[PR #2014] fix: installation via volta broken due to symbolic links pointing to tmp file #10159

Closed
opened 2026-02-16 18:14:46 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/2014

State: closed
Merged: No


The PR uses a relative path for symbolic link

See https://github.com/sst/opencode/issues/197
Fix verified locally by running local npm registry:

cat > ./verdaccio.local.yaml <<'YAML'
max_body_size: 200mb

storage: ./storage
uplinks:
  npmjs:
    url: https://registry.npmjs.org/
packages:
  "@*/*":
    access: $all
    publish: $all
    proxy: npmjs
  "**":
    access: $all
    publish: $all
    proxy: npmjs
YAML

npx verdaccio@latest --listen 4873 --config ./verdaccio.local.yaml

And publishing opencode to that:

OPENCODE_VERSION="1.0.0-local" OPENCODE_DRY="false" bun run script/publish.ts

The packages/opencode/script/publish.ts was updated to publish to local registry by appending
--registry http://localhost:4873 to the bun publish commands.

Volta was then used to install from the local registry:

NPM_CONFIG_REGISTRY=http://localhost:4873 npm_config_registry=http://localhost:4873 volta install opencode-ai@1.0.0-local
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/2014 **State:** closed **Merged:** No --- The PR uses a relative path for symbolic link See https://github.com/sst/opencode/issues/197 Fix verified locally by running local npm registry: ``` cat > ./verdaccio.local.yaml <<'YAML' max_body_size: 200mb storage: ./storage uplinks: npmjs: url: https://registry.npmjs.org/ packages: "@*/*": access: $all publish: $all proxy: npmjs "**": access: $all publish: $all proxy: npmjs YAML npx verdaccio@latest --listen 4873 --config ./verdaccio.local.yaml ``` And publishing opencode to that: ``` OPENCODE_VERSION="1.0.0-local" OPENCODE_DRY="false" bun run script/publish.ts ``` The `packages/opencode/script/publish.ts` was updated to publish to local registry by appending `--registry http://localhost:4873` to the `bun publish` commands. Volta was then used to install from the local registry: ``` NPM_CONFIG_REGISTRY=http://localhost:4873 npm_config_registry=http://localhost:4873 volta install opencode-ai@1.0.0-local ```
yindo added the pull-request label 2026-02-16 18:14:46 -05:00
yindo closed this issue 2026-02-16 18:14:46 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10159