Files
hermes-agent/tests/pm
BearHuddleston 633076e1af fix(pm): take vcruntime140.dll from the staging store's python first
stage_python_vcruntime() asked the runtime stores for python first and
tried the store being staged into only when they had no matching entry.
A bundle build stages into its own build store, where the walk has just
installed and verified python; a runtime-store python whose facts still
match but whose vcruntime140.dll is gone then failed the build with
"python's entry has no vcruntime140.dll" without trying the good copy.
The staging store is now asked first and the runtime stores second, so
a normal install (staging into the runtime store) and a sealed bundle
(bws into the writable store, python in the sealed one) find python as
before.

That also drops the `lockfile is not None` guard, which no production
path needed: _lockfile() always returns a Lockfile, and the guard only
kept the tests' None stub away from the roots= call.

The build-store test gains a runtime python without the DLL (red on
013b82f533 with that InstallError), and a new test covers the sealed
case; together they catch both one-sided lookups and the old order.
2026-11-28 11:35:26 -06:00
..