fix(build): support make dev on native Windows (#1886)

This commit is contained in:
João Manso
2026-07-24 12:08:22 +01:00
committed by GitHub
parent 34946011a1
commit 6fedac6c64
4 changed files with 128 additions and 14 deletions
+8
View File
@@ -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