hey guys, is there a Goal/Target in pants to only ...
# general
r
hey guys, is there a Goal/Target in pants to only install all dependencies of a particular path? My problem is that I want to use pants in docker, and I don't want to have to rebuild the dependency graph each time I want to generate a binary, so my idea is that I'll install all dependencies in a layer, and then binary goal will rebuild only the parts that changed each time
h
What language is this for?
r
for python sorry
h
And, to clarify, are you talking about 3rdparty dependencies vs. internal code? It's common that 3rdparty dependencies change rarely but internal code changes all the time.
r
for more context, when running a goal (test/binary) pants caches dependencies and sources in
pants.d
to use them for further invocations, is there a goal that will run to just generate the cache for specific
target
I'm talking a goal whose sole purpose is downloading and caching 3rdparty dependencies for example
like
./pants install src/3rdparty/::
or
./pants install src/python/somePackage/::
h
So just create the pexes but don't do anything with them
r
is there a goal for just creating the pexes ?
h
Oh sorry I just meant to reiterate what you were referring to
There should have been a question mark at the end...
"So just create the pexes but don't do anything with them?"
Let me get back to you on that
r
ok thx 🙂
h
Sorry, have been traveling but haven't forgotten this.
TBH my brain is entirely in the v2 engine right now, where this sort of thing happens automatically.
What version of Pants are you on? I'm wondering if you could switch to the v2 python pipeline, which is very near completion.
r
yep happy to switch anytime, and I'm on one of the latest versions
1.24.0.dev2
(the one with pex v2)
any news @happy-kitchen-89482? thx 🙏
h
I think you should be able to switch! the v2 python pipeline is basically feature complete. Is your underlying code Python 2 or Python 3?
r
python3.7 😁
i'm using v1.24.0.dev0 as it is the only version with pex 2.0.0, I'm not sure wether there is some problem with it as it is not available in later versions
h
Yes, there was some issue with it, we're working to restore it in the next release
r
apparently just using
./pants pyprep packages/::
directly does what I want already haha
h
oh great!