Hi! I found something a bit unexpected about `PANT...
# general
a
Hi! I found something a bit unexpected about
PANTS_CONCURRENT
- it seems to alter the way that relative paths are rooted, which seems like a huge footgun. Minimal example:
Copy code
$ echo "from_root" > file.txt
$ mkdir subdir
$ echo "python_sources()" > subdir/BUILD
$ echo "from_subdir" > subdir/file.txt
$ cat <<EOF > subdir/print_contents.py
import sys
with open(sys.argv[1], 'r', encoding='utf-8') as f:
  print(f.read())
EOF
$ pants run subdir/print_contents.py -- file.txt
from_root
$ cd subdir
$ pants run print_contents.py -- file.txt
from_root
$ PANTS_CONCURRENT=True pants run print_contents.py -- file.txt
from_subdir
Is this a bug or is there some setting that might change this?
b
Sorry for the trouble. I think this is indeed a bug. This bug specifically: https://github.com/pantsbuild/pants/issues/19682