Skip to content

Commit 562be60

Browse files
JonZeollaclaude
andcommitted
fix: add bash docker wrapper alongside .bat for Git Bash steps
The .bat wrapper is found by Task's mvdan/sh but not by Git Bash. Add a bash script wrapper too so both Task and direct bash steps route docker commands through WSL. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 93ef040 commit 562be60

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,16 @@ jobs:
228228
service docker start
229229
"
230230
231-
# Create a .bat wrapper so Task's shell (mvdan/sh) finds it on Windows.
232-
# WSL auto-translates the inherited CWD from Windows to /mnt/ paths.
231+
# Create docker wrappers that route to WSL's Docker.
232+
# - .bat for Task's mvdan/sh (Go's exec.LookPath needs a Windows extension)
233+
# - bash script for Git Bash steps
233234
mkdir -p "$HOME/bin"
234235
printf '@wsl -d Ubuntu-24.04 -u root -- docker %%*\r\n' > "$HOME/bin/docker.bat"
236+
cat > "$HOME/bin/docker" << 'WRAPPER'
237+
#!/bin/bash
238+
exec wsl -d Ubuntu-24.04 -u root -- docker "$@"
239+
WRAPPER
240+
chmod +x "$HOME/bin/docker"
235241
echo "$HOME/bin" >> "$GITHUB_PATH"
236242
- name: Initialize generated project
237243
shell: bash

0 commit comments

Comments
 (0)