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
A dev-lib flag makes the script re-exec itself, carrying @inc across in
T2_HARNESS_INCLUDES. That variable can only hold paths, so a hook was
serialized as "Foo=HASH(0x...)" and came back as a nonexistent directory,
while the real hook PERL5OPT had already reinstalled in the new process was
thrown away by the script and inject_includes() both replacing @inc outright.
Under Carmel that is fatal: its modules are reachable through nothing but
its hook, so the re-exec'd yath could not load its own plugins.
Serialize only paths, and keep any hook the new process already has. The
script needs its own copy of the logic because it sets @inc up before
App::Yath::Script can be loaded, which also means an installed yath script
must be replaced for the fix to take effect.
Written with AI assistance.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments