Skip to content

fix: route Makefile recipes through Git Bash on Windows - #254

Merged
ifsantana merged 1 commit into
mainfrom
fix/windows-make-shell-253
Aug 14, 2026
Merged

fix: route Makefile recipes through Git Bash on Windows#254
ifsantana merged 1 commit into
mainfrom
fix/windows-make-shell-253

Conversation

@ifsantana

Copy link
Copy Markdown
Collaborator

Summary

  • make build/make seed failed on Windows PowerShell/cmd with '.' não é reconhecido como um comando interno... because GNU Make for Windows dispatches recipes through cmd.exe, which doesn't understand ./mvnw, and ignores a Makefile SHELL reassignment for that dispatch.
  • Recipes now invoke Git Bash's bash.exe explicitly (via its standard Git-for-Windows install path) instead of relying on bash resolving on PATH, since machines with WSL installed can have bash resolve to the WSL launcher stub ahead of Git Bash.
  • This affects the README quickstart (make up/make build/make seed), the first thing OSS adopters run — fixing it before the Aug 18 launch.

Closes #253

Test plan

  • make build from Windows PowerShell now completes with BUILD SUCCESS across all 8 Maven modules
  • Confirmed no other files changed (git diff limited to Makefile)
  • Non-Windows behavior unchanged (recipes fall back to plain bash via the else branch — same commands as before)

GNU Make for Windows dispatches recipes through cmd.exe and ignores a
Makefile SHELL reassignment for that dispatch, so `./mvnw` and `chmod`
fail with "'.' não é reconhecido..." when running `make build`/`make
seed` from PowerShell or cmd. Invoke bash.exe explicitly per recipe
instead, using its standard Git-for-Windows path rather than relying
on `bash` resolving on PATH, since machines with WSL installed can
have `bash` resolve to the WSL launcher stub ahead of Git Bash.

Verified `make build` completes with BUILD SUCCESS from PowerShell.
@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing

@ifsantana
ifsantana merged commit c28eddd into main Aug 14, 2026
1 check passed
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.

fix: make build/seed fail on Windows PowerShell (cmd.exe SHELL resolution)

1 participant