Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix windows paths with --root #3281

Merged
merged 1 commit into from Jan 12, 2023

Conversation

sokra
Copy link
Member

@sokra sokra commented Jan 12, 2023

No description provided.

@sokra sokra requested a review from a team as a code owner January 12, 2023 08:20
@vercel
Copy link

vercel bot commented Jan 12, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
turbo-site ✅ Ready (Inspect) Visit Preview Jan 12, 2023 at 8:21AM (UTC)
9 Ignored Deployments
Name Status Preview Updated
examples-basic-web ⬜️ Ignored (Inspect) Jan 12, 2023 at 8:21AM (UTC)
examples-cra-web ⬜️ Ignored (Inspect) Jan 12, 2023 at 8:21AM (UTC)
examples-designsystem-docs ⬜️ Ignored (Inspect) Jan 12, 2023 at 8:21AM (UTC)
examples-kitchensink-blog ⬜️ Ignored (Inspect) Jan 12, 2023 at 8:21AM (UTC)
examples-native-web ⬜️ Ignored (Inspect) Jan 12, 2023 at 8:21AM (UTC)
examples-nonmonorepo ⬜️ Ignored (Inspect) Jan 12, 2023 at 8:21AM (UTC)
examples-svelte-web ⬜️ Ignored (Inspect) Jan 12, 2023 at 8:21AM (UTC)
examples-tailwind-web ⬜️ Ignored (Inspect) Jan 12, 2023 at 8:21AM (UTC)
turbo-vite-web ⬜️ Ignored (Inspect) Jan 12, 2023 at 8:21AM (UTC)

@github-actions
Copy link
Contributor

Benchmark for b4f0200

Click to view benchmark
Test Base PR % Significant %
bench_hmr_to_commit/Turbopack CSR/1000 modules 8639.12µs ± 60.48µs 8606.79µs ± 74.84µs -0.37%
bench_hmr_to_commit/Turbopack RCC/1000 modules 8858.81µs ± 70.49µs 9032.37µs ± 53.20µs +1.96%
bench_hmr_to_commit/Turbopack RSC/1000 modules 476.74ms ± 1.57ms 482.28ms ± 2.31ms +1.16%
bench_hmr_to_commit/Turbopack SSR/1000 modules 8573.61µs ± 43.81µs 8714.95µs ± 134.24µs +1.65%
bench_hmr_to_eval/Turbopack CSR/1000 modules 7587.84µs ± 60.29µs 7454.20µs ± 55.73µs -1.76%
bench_hmr_to_eval/Turbopack RCC/1000 modules 7457.64µs ± 64.64µs 7446.76µs ± 52.62µs -0.15%
bench_hmr_to_eval/Turbopack SSR/1000 modules 7417.46µs ± 42.95µs 7470.72µs ± 95.09µs +0.72%
bench_hydration/Turbopack RCC/1000 modules 3284.01ms ± 9.82ms 3303.05ms ± 16.64ms +0.58%
bench_hydration/Turbopack RSC/1000 modules 2778.15ms ± 10.85ms 2793.57ms ± 6.72ms +0.55%
bench_hydration/Turbopack SSR/1000 modules 2598.80ms ± 7.86ms 2622.47ms ± 10.44ms +0.91%
bench_startup/Turbopack CSR/1000 modules 1630.75ms ± 5.56ms 1604.55ms ± 8.58ms -1.61%
bench_startup/Turbopack RCC/1000 modules 2483.24ms ± 6.49ms 2491.51ms ± 8.29ms +0.33%
bench_startup/Turbopack RSC/1000 modules 2383.78ms ± 6.34ms 2387.54ms ± 10.10ms +0.16%
bench_startup/Turbopack SSR/1000 modules 2051.40ms ± 5.60ms 2078.70ms ± 11.76ms +1.33%

@github-actions
Copy link
Contributor

🟢 CI successful 🟢

Thanks

@sokra sokra merged commit b39fc85 into main Jan 12, 2023
@sokra sokra deleted the sokra/web-406-turbopack-crashes-on-windows-when---root branch January 12, 2023 11:38
let project_path = fs.root().join(project_relative);
.unwrap_or(project_relative)
.replace(MAIN_SEPARATOR, "/");
let project_path = fs.root().join(&project_relative);
Copy link
Contributor

Choose a reason for hiding this comment

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

This should have been detected by the join call, but we run our tests stripping out debug_asserts.

Copy link
Contributor

Choose a reason for hiding this comment

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

cargo nextest run --workspace --release --no-fail-fast --exclude turbo

.unwrap_or(project_relative);
let project_path = fs.root().join(project_relative);
.unwrap_or(project_relative)
.replace(MAIN_SEPARATOR, "/");
Copy link
Contributor

Choose a reason for hiding this comment

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

This should use sys_to_unix instead

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.

None yet

4 participants