Skip to content

fix(cli): restore executable bit on opencode build scripts - #11799

Merged
marius-kilocode merged 1 commit into
mainfrom
pollen-seer
Jun 29, 2026
Merged

fix(cli): restore executable bit on opencode build scripts#11799
marius-kilocode merged 1 commit into
mainfrom
pollen-seer

Conversation

@marius-kilocode

Copy link
Copy Markdown
Collaborator

Problem

The pre-release publish workflow invokes the CLI build script directly:

# .github/workflows/publish.yml
- name: Build
  run: ./packages/opencode/script/build.ts

This relies on the script's #!/usr/bin/env bun shebang plus the executable mode bit. #11591 rewrote build.ts during the sandbox hardening refactor, and a full-file rewrite recreates the file with default 644 permissions, so the mode flipped from 100755 to 100644. The same change stripped the executable bit from build-node.ts and publish.ts.

On Linux CI a non-executable file invoked as ./script.ts fails with Permission denied before Bun ever runs, which breaks the pre-release build (failing run).

Fix

Restore mode 100755 on all three scripts. Only build.ts is invoked via direct ./ execution today, but build-node.ts and publish.ts were also unintentionally stripped and carry the same Bun shebang, so all three are returned to their pre-#11591 state. The change is mode-only; file contents are untouched.

PR #11591 rewrote build.ts during the sandbox refactor, which recreated the file with default 644 permissions and dropped the executable bit (100755 -> 100644). The same change stripped the bit from build-node.ts and publish.ts.

The pre-release publish workflow invokes ./packages/opencode/script/build.ts directly, relying on its #!/usr/bin/env bun shebang. On Linux CI the non-executable mode fails with Permission denied before the build starts.

Restore mode 100755 on all three scripts. Content is unchanged.
@marius-kilocode
marius-kilocode merged commit e6a555f into main Jun 29, 2026
30 of 33 checks passed
@marius-kilocode
marius-kilocode deleted the pollen-seer branch June 29, 2026 13:53
t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
fix(cli): restore executable bit on opencode build scripts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants