https://pantsbuild.org/ logo
#general
Title
# general
r

ripe-processor-39843

10/08/2022, 12:00 AM
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

enough-analyst-54434

10/08/2022, 12:10 AM
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

ripe-processor-39843

10/08/2022, 12:11 AM
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

enough-analyst-54434

10/08/2022, 12:18 AM
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

happy-kitchen-89482

10/08/2022, 1:22 AM
Unusual! What was the osx update to?
r

ripe-processor-39843

10/08/2022, 2:01 AM
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

happy-kitchen-89482

10/14/2022, 5:28 PM
Oh macOS…