Drop --tsconfig-override from Bun invocations to avoid runtime crash#1315
Open
chsmc-ant wants to merge 2 commits into
Open
Drop --tsconfig-override from Bun invocations to avoid runtime crash#1315chsmc-ant wants to merge 2 commits into
chsmc-ant wants to merge 2 commits into
Conversation
Passing --tsconfig-override to `bun run` triggers a Bun runtime bug
("Internal error: directory mismatch for directory .../tsconfig.json")
that aborts the action with exit code 1 before any work is done.
Bun already auto-discovers the action's own tsconfig.json by walking up
the directory tree from the entry file, so the override is redundant —
the workspace's tsconfig is never an ancestor of the action checkout.
Dropping the flag preserves tsconfig resolution while avoiding the crash.
Refs: oven-sh/bun#25730
https://claude.ai/code/session_01L763e4S7zBnzDqmYYEJS1A
Removes redundant outer parentheses that were tripping format:check. Pre-existing on main; unrelated to the action.yml change but needed to keep CI green on this branch. https://claude.ai/code/session_01L763e4S7zBnzDqmYYEJS1A
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes the
--tsconfig-overrideflag from the threebun runinvocations inaction.yml.Problem
Passing
--tsconfig-overridetobun runtriggers a Bun runtime bug that logs:For some users this is a harmless stderr warning; for others it aborts the action with exit code 1 before any work is done. The same SHA can succeed on one run and fail on the next.
Upstream tracking: oven-sh/bun#25730
Why dropping the flag is safe
Bun auto-discovers
tsconfig.jsonby walking up the directory tree from the entry file (not from CWD). All three entrypoints live under${GITHUB_ACTION_PATH}/src/entrypoints/, so the walk always lands on the action's owntsconfig.json. The user's workspace tsconfig is never an ancestor of the_actions/checkout, so it cannot interfere.base-action/action.ymlalready invokesbun runwithout this flag — this brings the mainaction.ymlin line.Verification
Reproduced with Bun 1.3.11:
--tsconfig-override→ emits the "directory mismatch" errorFixes #1266
Fixes #1246
Fixes #1205