hundreds-father-404
05/16/2022, 1:55 PMname=
field less confusing & target addresses simpler..would you be willing to run this script and report back on what it says?
(warning it may take ~3-15 minutes probably, and you can't run other Pants commands while doing it)curl -L <https://gist.githubusercontent.com/Eric-Arellano/237c94dd602a3b36a72104e294167008/raw/2a248bf698659a35abbd4e571d8e6e9b244d08c1/find_num_owners.py> | python3 -
2. tell us the final reportpolite-garden-50641
05/16/2022, 2:01 PMfrom __future__ import annotations
should be added at the top of the file. Otherwise a TypeError occurs.bitter-ability-32190
05/16/2022, 2:10 PMcurl $url | python
curl <https://pantsbuild.slack.com/files/UB2J9BQA0/F03FHQE5B5K/find_num_owners_py.py>
outputs nothing, I suspect due to authpolite-garden-50641
05/16/2022, 2:17 PMhundreds-father-404
05/16/2022, 2:19 PMwide-midnight-78598
05/16/2022, 2:23 PMsubprocess.CalledProcessError: Command '['./pants', 'peek', '::']' returned non-zero exit status 1.
Is there a pants version requirement?hundreds-father-404
05/16/2022, 2:26 PMbitter-ability-32190
05/16/2022, 2:26 PM-O
you can pipe through to pythoncurl -L <https://gist.githubusercontent.com/Eric-Arellano/237c94dd602a3b36a72104e294167008/raw/37c1c01ed46f5e804d541164ecaa61b0d8bba2ff/find_num_owners.py> | python3 -
witty-family-13337
05/16/2022, 2:27 PM./pants list go.mod
with a `ResolveError: No owning targets could be found for the file `go.mod`` even though there is a go_mod
target in a BUILD
file next to where the Go modules file ishundreds-father-404
05/16/2022, 2:28 PMIs there a pants version requirement?
peek
has been supported for a while. What does ./pants peek ::
say when run directly in your repo?check=True
from line 62. I also updated the gist w/ that editwitty-family-13337
05/16/2022, 2:29 PMbitter-ability-32190
05/16/2022, 2:31 PMhundreds-father-404
05/16/2022, 2:32 PMgit diff
)bitter-ability-32190
05/16/2022, 2:54 PM0 owners: 0.0% (0 / 2508)
1 owners: 86.2% (2162 / 2508)
2 owners: 4.9% (124 / 2508)
>2 owners: 8.9% (222 / 2508)
I suspect anything with >1 owner is an artifact of our bazle/pants straddling and will be gone when we're off Bazel completelypolite-garden-50641
05/16/2022, 3:26 PM0 owners: 0.1% (2 / 2065)
1 owners: 94.2% (1946 / 2065)
2 owners: 5.7% (117 / 2065)
>2 owners: 0.0% (0 / 2065)
witty-family-13337
05/17/2022, 6:45 AM0 owners: 0.1% (2 / 2647)
1 owners: 99.0% (2621 / 2647)
2 owners: 0.9% (23 / 2647)
>2 owners: 0.0% (1 / 2647)
narrow-vegetable-37489
05/17/2022, 7:48 AM0 owners: 0.0% (0 / 442)
1 owners: 95.9% (424 / 442)
2 owners: 3.8% (17 / 442)
>2 owners: 0.2% (1 / 442)
Couldn't get the script to run on our second Pants repo (yes, I know. Hoping to merge the two one day!), will see if I can fix it.hundreds-father-404
05/17/2022, 12:29 PM