Skip to content

Commit d66354c

Browse files
anandgupta42claude
andcommitted
fix: use hard copy instead of symlink for altimate-code binary alias
The build script created `altimate-code` as a symlink to `altimate`. npm publish strips symlinks during packing, so the Verdaccio sanity test couldn't find the binary after install ("Binary not found at .../bin/altimate-code"). Using `cp` instead of `ln -sf` ensures the binary is a real file that survives npm pack/publish cycles. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 715fe9d commit d66354c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/opencode/script/build.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,12 @@ for (const item of targets) {
270270
})
271271

272272
// Create backward-compatible altimate-code alias
273+
// Use hard copy instead of symlink — npm publish and Docker COPY can strip symlinks,
274+
// causing "Binary not found" in Verdaccio sanity tests.
273275
if (item.os === "win32") {
274276
await $`cp dist/${name}/bin/altimate.exe dist/${name}/bin/altimate-code.exe`.nothrow()
275277
} else {
276-
await $`ln -sf altimate dist/${name}/bin/altimate-code`.nothrow()
278+
await $`cp dist/${name}/bin/altimate dist/${name}/bin/altimate-code`.nothrow()
277279
}
278280

279281
await $`rm -rf ./dist/${name}/bin/tui`

0 commit comments

Comments
 (0)