Hi folks,
Three people on our team so far who are on Windows have run into problems when running gclient sync this week that end with something like:
error: The following untracked working tree files would be overwritten by checkout:
pylint.bat
Please move or remove them before you switch branches.
Aborting
fatal: Could not detach HEAD
Failed to update depot_tools.
Syncing projects: 100% ( 1/ 1) src
src (ERROR)
----------------------------------------
[0:00:00] Started.
[0:00:00] ________ unmanaged solution; skipping src
----------------------------------------
Traceback (most recent call last):
...
File "C:\src\depot_tools\gclient_eval.py", line 588, in _convert
condition))
ValueError: invalid "and": exactly 2 operands required (inside 'host_os == "linux" and checkout_fuchsia and checkout_fuchsia_for_arm64_host')
The way that we've been able to resolve it is by going into depot_tools and running git pull. Once this is done gclient sync seems able to finish.
I haven't root-caused why depot_tools seems unable to update during gclient sync here, nor if there are KIs, this was just how we were able to work around it.
Hopefully this rings bells for someone who'd know what's going on.
Best,
Peter