wide-midnight-78598
09/30/2022, 8:18 PMdist/...
- however, to deploy them from my ansible role, I need them in specific locations. I haven't been able to resolve symlinks (it just uploads the symlink to the target). Is there a Pantsian way to manipulate the host filesystem?wide-midnight-78598
09/30/2022, 8:19 PMhundreds-father-404
09/30/2022, 8:19 PMdist
and instead wrote to your project? I'm trying to remember why we did dist/
in the first placewide-midnight-78598
09/30/2022, 8:19 PMshell
target?wide-midnight-78598
09/30/2022, 8:19 PMoutputpath
?hundreds-father-404
09/30/2022, 8:20 PMOh, outputpath?yeah, but still writes to
dist/
. I'm wondering if we changed it so you could write anywhere (in the repo)wide-midnight-78598
09/30/2022, 8:20 PMhundreds-father-404
09/30/2022, 8:21 PM--distdir
option. or maybe it's --pants-distdir
wide-midnight-78598
09/30/2022, 8:22 PMpants.toml
api page somewhere?wide-midnight-78598
09/30/2022, 8:23 PMhundreds-father-404
09/30/2022, 8:23 PMwide-midnight-78598
09/30/2022, 8:23 PMpants.toml
wide-midnight-78598
09/30/2022, 8:28 PMwide-midnight-78598
09/30/2022, 8:29 PMpants_distdir = "."
Packaging puts my pexes alongside their sources, in whatever subdir that is.
I cannot use pants_distdir = "/"
because it complains about
" InvalidDistDir: When set to an absolute path,must be relative to the build root.You set it to /. Instead, use a relative path or an absolute path relative to the build root."--pants-distdir
wide-midnight-78598
09/30/2022, 8:30 PM[source]
root_patterns = ["/"]
hundreds-father-404
09/30/2022, 8:31 PM/
gets converted to .
?wide-midnight-78598
09/30/2022, 8:32 PM.
is relative to source paths of the files, apparently.
So, not sure how to get my project root.
Weird though, that pants_dir = "build"
IS relative to my project root...wide-midnight-78598
09/30/2022, 8:32 PMwide-midnight-78598
09/30/2022, 8:33 PMwide-midnight-78598
09/30/2022, 8:37 PMpants_distdir = "."
pex_binary(
name="configurator",
entry_point="configurator.py",
output_path="deployment/roles/app/files/configurator.pex"
)
hundreds-father-404
09/30/2022, 8:39 PMpants_distdir
, or only when building this? It will impact things like ./pants export-codegen
wide-midnight-78598
09/30/2022, 8:39 PMwide-midnight-78598
09/30/2022, 8:40 PMcareful-address-89803
09/30/2022, 9:38 PMwide-midnight-78598
09/30/2022, 9:55 PMwide-midnight-78598
09/30/2022, 9:56 PMcareful-address-89803
09/30/2022, 9:57 PMwide-midnight-78598
09/30/2022, 10:17 PMwide-midnight-78598
09/30/2022, 10:18 PM