i’m seeing an issue running `./pants lint --change...
# general
r
i’m seeing an issue running
./pants lint --changed-since=origin/master
that just started happening out of the blue, i think it might have started happening after an osx system update. error output is:
Copy code
16:58:10.09 [INFO] Initializing scheduler...
16:58:10.26 [INFO] Scheduler initialized.
16:58:11.23 [ERROR] The `--changed-*` options are only available if Git is used for the repository.
Traceback (most recent call last):
  File "/Users/lee/.cache/pants/setup/bootstrap-Darwin-arm64/pants.jKTvcH/install/lib/python3.9/site-packages/pants/bin/daemon_pants_runner.py", line 125, in single_daemonized_run
    runner = LocalPantsRunner.create(
  File "/Users/lee/.cache/pants/setup/bootstrap-Darwin-arm64/pants.jKTvcH/install/lib/python3.9/site-packages/pants/bin/local_pants_runner.py", line 152, in create
    specs = calculate_specs(
  File "/Users/lee/.cache/pants/setup/bootstrap-Darwin-arm64/pants.jKTvcH/install/lib/python3.9/site-packages/pants/init/specs_calculator.py", line 57, in calculate_specs
    raise InvalidSpecConstraint(
pants.init.specs_calculator.InvalidSpecConstraint: The `--changed-*` options are only available if Git is used for the repository.
Pretty stumped on this, the directory i’m in is definitely a git repo. Like I said this was working fine for me for a long period of time, and only started breaking recently i think related to an osx update, but yea, having trouble getting to the bottom of it. anyone see something like this before or have any suggestions?
e
What's the casing of the .git dir is it .Git? Also newer git is more picky about where ... some things are located. Do bare git commands work for you? Were you forced to add a gitconfig warning suppression after the OS upgrade?
r
dir is
.git
, and yea normal git commands continue working. pull / push / commit at least have definitely been used normally
did not do anything specific related to
gitconfig
e
No clue, just rolling on ~obvious potential weird: Are the git executable + pants both arm or is one of the two using rosetta - I have no clue how that all works and I suspect a mismatch should work fine, but when debugging...
Maybe check
.pants.d/pants.log
to see what that says.
h
Unusual! What was the osx update to?
r
unclear, not a major os version upgrade or anything, just a your computer needs an update, will apply on the next restart
just an update here in case it will help anyone else in the future: i was randomly installing something w/ brew today, and got messages about how i had to like re-agree to the xcode agreement before i could do the brew install. opened up xcode and went through the agreement and upgrade steps and everything, and now pants is working again. so yea, definitely had to do w/ the mac update as i suspected. sometimes mac updates force you to like re-initialize that xcode junk, and i guess the fact that i hadn’t done that yet after the upgrade was messing with something that affected pants, and just wasn’t getting a clear error about it
🤣 1
h
Oh macOS…