fix(build): support make dev on native Windows (#1886)
This commit is contained in:
@@ -150,7 +150,15 @@ bootstrap-e2e:
|
||||
|
||||
.PHONY: doctor
|
||||
doctor:
|
||||
# Native Windows (cmd/PowerShell) has no POSIX shell for the bash-only doctor
|
||||
# script. Under Git Bash/MSYS ($(MSYSTEM) is set) it runs fine, so skip only
|
||||
# when OS is Windows_NT AND MSYSTEM is empty — the concatenation equals
|
||||
# "Windows_NT" only in that native case.
|
||||
ifeq ($(OS)$(MSYSTEM),Windows_NT)
|
||||
@echo pre-commit hooks skipped on native Windows - run scripts/doctor from Git Bash to enable
|
||||
else
|
||||
@scripts/doctor
|
||||
endif
|
||||
|
||||
.PHONY: dev
|
||||
dev: doctor
|
||||
|
||||
Reference in New Issue
Block a user