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

rapid-bird-79300

08/27/2021, 6:18 PM
running into an issue setting dependencies with
.
in path names. created an example branch here: https://github.com/njgrisafi/pants-example/tree/dot-path-example
on the example repo you can test this by running:
Copy code
./pants dependees app/some.path.com
If you update the target to use the
_
directory, it works as expected.
h

hundreds-father-404

08/27/2021, 6:23 PM
ah the issue is that it thinks this is a file target, when it's a BUILD target. Hm. Could you please promote this to a GitHub issue?
Is using
_
acceptable, or you need to keep using
.
for the dir name?
r

rapid-bird-79300

08/27/2021, 6:28 PM
We can work around this by setting a resource target a directory up set the sources to the
.
directories resources. So nothing blocking atm but I’d imagine
.
directory should be supported for BUILD targets.
will file an issue
❤️ 1
h

happy-kitchen-89482

08/27/2021, 9:06 PM
This ties in to thoughts we've had around "directory specs"
The idea is to make
./pants goal path/to/dir
where
dir
is a directory mean "act on all the files under that dir", instead of what it means today, which is "act on the target
path/to/dir:dir
. In that future, all specs not containing a colon would be considered to represent files/directories, and we wouldn't need to rely on vaguer heuristics like a
.
indicating a file.
👍 1
5 Views