You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like there was a regression from 2.1.148 -> 2.1.149 with the behaviour of venv create with a --pex-repository that was created with --sources-directory: those sources aren't included in the final venv.
Running that shows that the contents of the dest-... directory depends on the version, without the bar.py file when using v2.1.149, but should be the same:
This fixes#2285 by fixing a minor typo in
f9a9d94 / #2263 that caused the
computation of a PEXes code hash to not recur into the correct
directories.
I think this explains the symptoms in #2285 due to caching: if a PEX
only contains files in subdirectories, the code hash will be
`da39a3ee5e6b4b0d3255bfef95601890afd80709` (the sha256 hash of no data)
and thus potentially the `venv create` might be referring to an
incorrectly cached installation.
It seems like there was a regression from 2.1.148 -> 2.1.149 with the behaviour of
venv create
with a--pex-repository
that was created with--sources-directory
: those sources aren't included in the final venv.Reproducer:
Running that shows that the contents of the
dest-...
directory depends on the version, without thebar.py
file when using v2.1.149, but should be the same:Ablative studies:
NB.2
line (to have two files) passes ✅ (both versions have bothfoo/bar.py
andqux.py
)NB.1
withNB.2
(to justqux.py
at the top level) passes ✅NB.3
(create the pex) and v2.1.149 on lineNB.4
(create the venv) passes ✅NB.3
and v2.1.148 forNB.4
fails ❌--layout
, but the output is simpler with--layout=flat
(First observed in pantsbuild/pants#20149.)
The text was updated successfully, but these errors were encountered: