fix(compose): disable MSYS path conversion in run.sh - #4785
Open
tonbistudio wants to merge 1 commit into
Open
Conversation
Under Git Bash on Windows, MSYS rewrites absolute container paths in command arguments before docker receives them: `docker compose exec relay /usr/local/bin/buzz-admin` becomes `C:/Program Files/Git/usr/ local/bin/buzz-admin` inside the container and fails with "OCI runtime exec failed: no such file or directory". This breaks add-member, remove-member, and list-members - the documented way to populate a closed relay - on the platform most likely to be running a first local deployment. Export MSYS_NO_PATHCONV=1 at the top of the script; it is a no-op in every non-MSYS shell. Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: ntombisol <[email protected]>
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.
Problem
Under Git Bash on Windows, MSYS rewrites absolute container paths in command arguments before docker receives them:
/usr/local/bin/buzz-adminwas converted to a Windows Git-installation path inside the container. This breaksadd-member,remove-member, andlist-members— the documented way to populate a closed relay — on the platform most likely to be running a first local deployment (Windows users must already use Git Bash to runrun.shat all).Fix
export MSYS_NO_PATHCONV=1at the top ofrun.sh. The variable is only interpreted by Git-for-Windows' MSYS layer; it is a no-op in every other shell, so macOS/Linux behavior is unchanged.Testing
MSYS_NO_PATHCONV=1exported,add-member/list-memberswork against a live compose stack.🤖 Generated with Claude Code