Hi, this is more of a learner’s question - as in t...
# general
Hi, this is more of a learner’s question - as in to understand how Pants work: when do the venvs under
get created? I see a bunch of them in my linux Docker container where I run Pants, why is that so? Why can’t there be only one venv? Moreover, how are the directories under
named? After some SHA256 (of what)? And then sub-directories under them which eventually have pex installed? For example, the last two directories in this path:
Pants builds each target using only its dependencies
this results in smaller cache keys, so you can hit caches in more cases
and it means that each of your
targets (for example) contain only what you actually need to ship them.
Ok, so these venvs gets built for every target that I
, or
? And let’s say I am
the same target the second time without any changes in code or BUILD files, Pants would use the same venv from its cache and the keys are probably the name of the directories?
👍 1
that’s correct
👍 1
I am looking at this code and trying to understand if the SHA256 mentioned on lines from 13 to 16 are the ones for binaries hosted on URL: https://binaries.pantsbuild.org/bin/grpc_python_plugin/{version}/{platform}/grpc_python_plugin? Should these SHA256 match for a given platform if I build grpc version 1.32.0 from its source and then check shasum of grpc_python_plugin file?
That is probably a different question: would you mind asking it in a new thread?
(it's a different use of hashing)
Oh, I am so sorry. I thought I was sending it in general channel.
Thanks for the response but I posted it again there as I have some follow up questions as well.