quaint-telephone-89068
12/06/2022, 11:02 PM09:55:59.81 [ERROR] 1 Exception encountered:
DifferingFamiliesError: Expected AddressMaps to share the same parent directory 'dir/*', but received: 'dir/sub/BUILD'
Reproducer: https://gist.github.com/huonw/1d2e20a961111eba39a20ac55606cdd7 (directory structure created in make.sh, since one cannot have directories in a gist)
git clone <mailto:git@gist.github.com|git@gist.github.com>:1d2e20a961111eba39a20ac55606cdd7.git
cd 1d2e20a961111eba39a20ac55606cdd7
bash ./make.sh
./pants version
# 2.14.0
./pants dependencies dir:single
# DifferingFamiliesError: Expected AddressMaps to share the same parent directory 'dir/*', but received: 'dir/sub/BUILD'
./pants dependencies dir:recursive
# DifferingFamiliesError: Expected AddressMaps to share the same parent directory 'dir/**', but received: 'dir/BUILD'
I'm suspect I'm doing something wrong here, but, if I am, the error message isn't making it obvious what that is, or how to fix it. For example, I'm not sure what AddressMaps is, and am confused by the mention of the BUILD file when it is talking about a parent directory?
Pants version
I tried: 2.14.0, 2.15.0a1, 2.16.0.dev0.
The latter two had additional traceback, e.g.
Engine traceback:
in `dependencies` goal
in Resolve direct dependencies of target - dir:recursive
in Search for addresses in BUILD files - dir/**
OS
macOS
Additional info
https://gist.github.com/huonw/1d2e20a961111eba39a20ac55606cdd7
pantsbuild/pants