https://pantsbuild.org/ logo
f

fresh-cat-90827

08/01/2022, 1:02 PM
I just ran command
./pants tailor ::
on a new repository and got:
Copy code
13:56:24.86 [ERROR] 1 Exception encountered:

  ValueError: The tailor goal only accepts literal directories as arguments, but you specified: ::.  You can also specify no arguments to run against the entire repository.
Running
./pants tailor
works fine. The command with the
::
target is provided in the docs: Generate BUILD files. Is this expected or is it an issue? Perhaps the semantics of the command has changed in a recent version and docs need to be updated?
1
b

bitter-ability-32190

08/01/2022, 2:30 PM
What version of Pants? Also CC @hundreds-father-404
f

fresh-cat-90827

08/01/2022, 2:33 PM
sorry! it's
2.12.0
b

bitter-ability-32190

08/01/2022, 2:33 PM
This might be pre-Eric's changes perhaps? I think the error message is valid (until 2.13 where the specs semantics changed)
Yeah, and your link is for version 2.13 😉
f

fresh-cat-90827

08/01/2022, 2:36 PM
ah of course, thanks @bitter-ability-32190!
🙌 1
h

hundreds-father-404

08/01/2022, 3:07 PM
Yeah, 2.13 is where things become consistent. Thanks Josh
🎉 1