brave-furniture-86963
09/30/2021, 6:21 PMpex
dependency stored under a pants_files
directory at the root of my repo.
What should my pants.toml
look like for pants
to use the local pex
file instead of downloading it form the internet?
This does not work
[download-pex-bin]
url_template="<file://pants_files/pex>"
It fails with
Exception: Error (No such file or directory (os error 2)) opening file at /pex for download to pex
witty-crayon-22786
09/30/2021, 6:32 PMwitty-crayon-22786
09/30/2021, 6:33 PMhundreds-father-404
09/30/2021, 6:33 PMpants_files/pex
?
If that works, you can use %(buildroot)s
to interpolate the absolute path to your build root, like file://%(buildroot)s/pants_files/pex
I thinkwitty-crayon-22786
09/30/2021, 6:33 PMwitty-crayon-22786
09/30/2021, 6:34 PMwitty-crayon-22786
09/30/2021, 6:34 PMwitty-crayon-22786
09/30/2021, 6:34 PM[download-pex-bin]
url_template = "<file://ignored/%(buildroot)s/pants_files/pex>"
witty-crayon-22786
09/30/2021, 6:35 PMwitty-crayon-22786
09/30/2021, 6:48 PMwitty-crayon-22786
09/30/2021, 6:48 PMbrave-furniture-86963
09/30/2021, 6:57 PM[download-pex-bin]
url_template = "<file://ignored/%(buildroot)s/pants_files/pex>"
worked! Thanks all!witty-crayon-22786
09/30/2021, 6:58 PM