acoustic-optician-2734
10/28/2024, 7:18 PMPANTS_CONCURRENT
- it seems to alter the way that relative paths are rooted, which seems like a huge footgun. Minimal example:
$ 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?broad-processor-92400
10/29/2024, 11:46 PM