Repository navigation
Closed
Labels
bugSomething isn't workingSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentui
Description
Description
Starting from 1.0.36 I'm getting on bun add -g [email protected] the following error Integrity check failed for tarball
🚚 opencode-darwin-arm64 [2/2] error: Integrity check failed for tarball: opencode-darwin-arm64
error: IntegrityCheckFailed extracting tarball from opencode-darwin-arm64
1.0.35 is ok
OpenCode version
1.0.36
Steps to reproduce
# run any of on mac m{x}
bun add -g [email protected]
bun add -g opencode-aiScreenshot and/or share link
No response
Operating System
macOs 26.0.1 (MacBook Air m4)
Terminal
iterm2
Trying to build from dev branch is not working too
tar: ../../node_modules/opentui-core-win32-x64-0.1.36.tgz: Not found in archive
tar: ../../node_modules/opentui-core-win32-x64-0.0.0-20251106-788e97e4.tgz: Not found in archive
tar: -C: Not found in archive
tar: ../../node_modules/@opentui/core-win32-x64: Not found in archive
tar: --strip-components=1: Not found in archive
tar: Error exit delayed from previous errors.
43 | await $`mkdir -p ../../node_modules/${opentui}`
44 | await $`npm pack ${opentui}@${pkg.dependencies["@opentui/core"]}`.cwd(
45 | path.join(dir, "../../node_modules"),
46 | )
47 | console.log(1)
48 | await $`tar -xf ../../node_modules/${opentui.replace("@opentui/", "opentui-")}-*.tgz -C ../../node_modules/${opentui} --strip-components=1`
^
ShellError: Failed with exit code 1
exitCode: 1,
stdout: "",
stderr: "tar: ../../node_modules/opentui-core-win32-x64-0.1.36.tgz: Not found in archive\ntar: ../../node_modules/opentui-core-win32-x64-0.0.0-20251106-788e97e4.tgz: Not found in archive\ntar: -C: Not found in archive\ntar: ../../node_modules/@opentui/core-win32-x64: Not found in archive\ntar: --strip-components=1: Not found in archive\ntar: Error exit delayed from previous errors.\n",
at new ShellPromise (75:16)
at BunShell (191:35)
at /Users/ice/oss-prs/opencode/packages/opencode/script/build.ts:48:9
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentui
Activity
Ravi-AIML commentedon Nov 7, 2025
The build fails with "Not found in archive" error because old tarball files from previous builds remain in node_modules, causing the wildcard pattern to match multiple files.
npm pack creates
opentui-core-win32-x64-0.1.36.tgzbutopentui-core-win32-x64-0.0.0-20251106-788e97e4.tgzstill exists from before. The wildcardopentui-core-win32-x64-*.tgzmatches both, confusing tar.Delete old tarball files before building: