Skip to content

Draft: Turbopack: Auto-detect pnpm GVS and configure an additional root for it - #99758

Draft
bgw wants to merge 1 commit into
canaryfrom
bgw/gvs-detection
Draft

bgw wants to merge 1 commit into
canaryfrom
bgw/gvs-detection

Conversation

@bgw

@bgw bgw commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Claude slop. Working on reviewing it myself...

@bgw
bgw marked this pull request as draft October 7, 2026 00:33
@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Tests Passed

Commit: 19cd777

///
/// [gvs]: https://pnpm.io/global-virtual-store
pub(crate) fn find_global_virtual_store(project_root: &Path, project_path: &str) -> Option<RcStr> {
let mut dir = project_root.join(project_path);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let mut dir = project_root.join(project_path);
// `project_path` is always a Unix-style (`/`-separated) path. Push each component
// individually rather than using `Path::join`, because on Windows forward slashes are not
// treated as separators inside verbatim (`\\?\`-prefixed) paths, which `project_root` is.
let mut dir = project_root.to_path_buf();
for component in project_path.split('/') {
if !component.is_empty() {
dir.push(component);
}
}

On Windows, joining a Unix-style (/-separated) project_path to a verbatim (\\?\) project_root treats apps/web as one literal component, breaking the per-project .modules.yaml lookup and the upward directory search.

Fix on Vercel

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant