File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,20 +4,11 @@ VERSION := $(shell grep 'Version = ' cmd/root.go | head -1 | sed 's/.*"\(.*\)"/\
44
55# Use bash as the Make recipe shell (required on Windows where the default
66# shell cannot execute .sh scripts).
7- # On Windows, "bash" can resolve to C:\Windows\System32\bash.exe (WSL launcher)
8- # instead of Git Bash. Prefer Git Bash when available.
9- ifeq ($(OS ) ,Windows_NT)
10- GIT_BASH := $(firstword $(wildcard $(ProgramW6432 ) /Git/bin/bash.exe) \
11- $(wildcard $(ProgramFiles ) /Git/bin/bash.exe) \
12- $(wildcard $(PROGRAMFILES ) /Git/bin/bash.exe) )
13- ifdef GIT_BASH
14- SHELL := $(GIT_BASH )
15- else
16- SHELL := bash
17- endif
18- else
19- SHELL := bash
20- endif
7+ # On Windows with WSL installed, bare "bash" may resolve to the WSL launcher
8+ # (C:\Windows\System32\bash.exe) instead of Git Bash. CI workflows override
9+ # this with SHELL="$(which bash)" to guarantee Git Bash. For local Windows
10+ # dev use, ensure Git Bash appears before System32 on PATH.
11+ SHELL := bash
2112
2213# Disable CGO to avoid Xcode/C compiler dependency
2314export CGO_ENABLED = 0
You can’t perform that action at this time.
0 commit comments