This one is hard to google because it’s about punc...
# general
b
This one is hard to google because it’s about punctuation… is there a reason that pants uses
::
(two colons) instead of
...
like other similar build systems? One fewer character to type? Four dots are better than three? 😉
h
I honestly don’t remember, @enough-analyst-54434, does this come to mind?
e
No clue, but there were no similar (open) build systems on Pants birth date.
But I'm pretty sure it evolved from
:
separating a build file target name; so a bare
:
meaning any build file target name made sense; then
::
meaning that recursively makes further sense.
In that frame of mind,
...
comes out of left field.
w
I don't know if it was early Windows, or just DOS days - but
cd ...
would go up two directories if memory serves
I immediately assumed that
./pants lint ...
would act on a grandparent directory 🤦‍♂️
b
`...`is a Perforce thing. No surprise Bazel uses it
f
@enough-analyst-54434: a past version of you introduced the syntax in https://github.com/pantsbuild/pants/commit/fb3cd10bfc67a5ecf58d1d6b1463de2cf6ae8ab6 more than 10 years ago 🙂.
Copy code
Add support for : and :: syntax to select all sibling and all descendant targets, deprecate the corresponding --all and --all-recursive flags
😮 1
e
Aha. Yeah, : <-> sibling language makes sense. It just rolls from there.
👍 2
b
awesome, thanks!