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

refactor: Make Run::run take a ref #7946

Merged
merged 1 commit into from Apr 15, 2024
Merged

Conversation

NicholasLYang
Copy link
Contributor

@NicholasLYang NicholasLYang commented Apr 11, 2024

Description

With watch mode, we want to be able to re-use a Run instance between the different executions. We couldn't do this before since Run::run would move the struct, but now we have it take a ref.

This does require putting the package inputs hashing into Run::run instead of in the builder, but I think that's a better fit anyways. This also pulls out analytics from the Run struct but that will also be useful for watch mode, since we want to re-use the same analytics handle.

Testing Instructions

Closes TURBO-2779

Copy link

vercel bot commented Apr 11, 2024

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

Name Status Preview Updated (UTC)
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview Apr 11, 2024 8:40pm
rust-docs ✅ Ready (Inspect) Visit Preview Apr 11, 2024 8:40pm
8 Ignored Deployments
Name Status Preview Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Apr 11, 2024 8:40pm
examples-designsystem-docs ⬜️ Ignored (Inspect) Apr 11, 2024 8:40pm
examples-gatsby-web ⬜️ Ignored (Inspect) Apr 11, 2024 8:40pm
examples-kitchensink-blog ⬜️ Ignored (Inspect) Apr 11, 2024 8:40pm
examples-native-web ⬜️ Ignored (Inspect) Apr 11, 2024 8:40pm
examples-svelte-web ⬜️ Ignored (Inspect) Apr 11, 2024 8:40pm
examples-tailwind-web ⬜️ Ignored (Inspect) Apr 11, 2024 8:40pm
examples-vite-web ⬜️ Ignored (Inspect) Apr 11, 2024 8:40pm

Copy link
Contributor

🟢 Turbopack Benchmark CI successful 🟢

Thanks

Copy link
Contributor

github-actions bot commented Apr 11, 2024

🟢 CI successful 🟢

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants