mirror of
https://fuchsia.googlesource.com/third_party/pigweed.googlesource.com/pigweed/pigweed
synced 2024-09-09 04:29:36 +00:00
bootstrap: Warn about Windows case-sensitivity support
Pigweed doesn't support case-sensitive filesystems on Windows yet, so emit an error if a user tries to bootstrap from one. Bug: b/322437881 Change-Id: Iac896bd3310c597615473915746bddac11cf00c7 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/194715 Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> Pigweed-Auto-Submit: Armando Montanez <amontanez@google.com> Reviewed-by: Alexei Frolov <frolv@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
f25eb6ab8c
commit
5ce9ca7349
|
@ -96,6 +96,23 @@ if "%PW_ENVIRONMENT_ROOT%"=="" (
|
|||
set "_PW_ACTUAL_ENVIRONMENT_ROOT=%PW_ENVIRONMENT_ROOT%"
|
||||
)
|
||||
|
||||
:: Check case sensitivity.
|
||||
:: TODO: https://pwbug.dev/322437881 - Support case-sensitive filesystems on
|
||||
:: Windows.
|
||||
fsutil.exe file queryCaseSensitiveInfo "%PW_PROJECT_ROOT%" | findstr disabled > NUL
|
||||
if "%ERRORLEVEL%" == "1" (
|
||||
echo.
|
||||
echo Error: Your project's directory has case sensitivity enabled.
|
||||
echo.
|
||||
echo Pigweed does not yet support case-sensitive file systems on Windows.
|
||||
echo Please run this command **FROM AN ADMINISTRATOR COMMAND PROMPT** to
|
||||
echo disable case sensitivity on your checkout:
|
||||
echo.
|
||||
echo fsutil.exe file setCaseSensitiveInfo "%PW_PROJECT_ROOT%" disable
|
||||
echo.
|
||||
goto finish
|
||||
)
|
||||
|
||||
set "shell_file=%_PW_ACTUAL_ENVIRONMENT_ROOT%\activate.bat"
|
||||
|
||||
set "_pw_start_script=%PW_ROOT%\pw_env_setup\py\pw_env_setup\windows_env_start.py"
|
||||
|
|
Loading…
Reference in New Issue
Block a user