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
fix(host-kit): resolve the code-signature root so a symlinked checkout stamps its own files (#2429)
walkDaemonCodeGraph resolved manifests through realpath but left the root
and the entry as given. Under a symlinked prefix — macOS /tmp, a symlinked
checkout — the two then sat on either side of the link: every workspace
package was labelled by the route out of the repository and back in
(../../../private/tmp/...), and isInstalledDependencyPath read every
installed dependency as a workspace package and walked its whole closure.
Route the root, the entry, and the manifest through one resolver, and give
the cache the same resolved pair so a document's entry label still matches
the walk that wrote it. The cache's private copy of that resolver goes away.
The fixtures now build a resolved root, which is the shape a production
caller passes (findProjectRoot derives it from an already-resolved
import.meta.url). Naming a root through a link is covered on purpose
instead, by two tests that fail without this change on any platform.
0 commit comments