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

Rename Turbopack/tasks crates to common prefixes #4866

Merged
merged 3 commits into from
May 11, 2023

Conversation

alexkirsz
Copy link
Contributor

@alexkirsz alexkirsz commented May 8, 2023

Description

See #4853 for the corresponding change on the turborepo side.

Testing Instructions

link WEB-1015

@vercel
Copy link

vercel bot commented May 8, 2023

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

Name Status Preview Comments Updated (UTC)
examples-svelte-web 🔄 Building (Inspect) May 11, 2023 9:08am
10 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) May 11, 2023 9:08am
examples-cra-web ⬜️ Ignored (Inspect) May 11, 2023 9:08am
examples-designsystem-docs ⬜️ Ignored (Inspect) May 11, 2023 9:08am
examples-gatsby-web ⬜️ Ignored (Inspect) May 11, 2023 9:08am
examples-kitchensink-blog ⬜️ Ignored (Inspect) May 11, 2023 9:08am
examples-native-web ⬜️ Ignored (Inspect) May 11, 2023 9:08am
examples-nonmonorepo ⬜️ Ignored (Inspect) May 11, 2023 9:08am
examples-tailwind-web ⬜️ Ignored (Inspect) May 11, 2023 9:08am
examples-vite-web ⬜️ Ignored (Inspect) May 11, 2023 9:08am
turbo-site ⬜️ Ignored (Inspect) Visit Preview May 11, 2023 9:08am

@github-actions
Copy link
Contributor

github-actions bot commented May 8, 2023

🟢 CI successful 🟢

Thanks

@github-actions
Copy link
Contributor

github-actions bot commented May 8, 2023

✅ This change can build next-swc

Cargo.toml Outdated
@@ -50,14 +18,12 @@ members = [
"crates/turborepo-lockfiles",
"crates/turborepo-scm",
"crates/turborepo-vercel-api-mock",
"crates/utils/*",
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we have this be turbopack-utils?

Copy link
Contributor Author

@alexkirsz alexkirsz May 8, 2023

Choose a reason for hiding this comment

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

It doesn't make much sense, as auto-hash-map is only used by turbo-tasks, while swc-ast-explorer is its own thing independent of both.

auto-hash-map could go into a turbo-tasks-utils. swc-ast-explorer could be renamed turbopack-utils/swc-ast-explorer.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah that would be preferable. I think we should avoid having any ambiguous folders, otherwise it'd be too easy for us to accidentally put a turborepo crate in utils/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately, this breaks the glob pattern for turbopack* and turbo-tasks* above, as turbo-tasks-utils wouldn't be a crate, but turbo-tasks-utils/auto-hash-map would. The solution here is to keep everything flat and rename them turbo-tasks-auto-hash-map and turbopack-swc-ast-explorer.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah now that I remember, I ran into this exact issue lol. Ah the frustrations of globbing...

Copy link
Member

Choose a reason for hiding this comment

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

Technically auto-hash-map is not related to turbo-tasks, but nevermind

@alexkirsz alexkirsz added the pr: automerge Kodiak will merge these automatically after checks pass label May 11, 2023
@alexkirsz alexkirsz merged commit 731d27d into main May 11, 2023
41 checks passed
@alexkirsz alexkirsz deleted the alexkirsz/web-1015-rename-crates branch May 11, 2023 09:40
alexkirsz added a commit to vercel/next.js that referenced this pull request May 11, 2023
See vercel/turbo#4866

This also updates Turbopack to turbopack-230511.2 with the following
changes:

* vercel/turbo#4636 <!-- Alex Kirszenberg - Add
support for logging events and intervals in the macOS profiler -->
* vercel/turbo#4793 <!-- OJ Kwon - ci(workflow):
enable more test -->
* vercel/turbo#4886 <!-- OJ Kwon -
refactor(ecmascript-plugins): update serverdirective signature -->
* vercel/turbo#4866 <!-- Alex Kirszenberg -
Rename Turbopack/tasks crates to common prefixes -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: automerge Kodiak will merge these automatically after checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants