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

Turbopack + Relay: don’t manually provide a fallback artifact_directory #8660

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

wbinnssmith
Copy link
Member

swc_relay implements its own logic for locating the __generated__ directory relative to the input file[0]

Test Plan: TURBOPACK_BUILD=1 TURBOPACK=1 pnpm test-dev test/integration/relay-graphql-swc-single-project/test/index.test.js

[0] https://github.com/swc-project/plugins/blob/8c1c1513b9d445e27d47407a9a3dea4fc53e185a/packages/relay/transform/src/lib.rs#L250-L254

`swc_relay` implements its own logic for locating the `__generated__` directory relative to the input file[0]

Test Plan: `TURBOPACK_BUILD=1 TURBOPACK=1 pnpm test-dev test/integration/relay-graphql-swc-single-project/test/index.test.js`

[0] https://github.com/swc-project/plugins/blob/8c1c1513b9d445e27d47407a9a3dea4fc53e185a/packages/relay/transform/src/lib.rs#L250-L254
Copy link

vercel bot commented Jul 3, 2024

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

Name Status Preview Comments Updated (UTC)
rust-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 3, 2024 10:33pm
9 Skipped Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Jul 3, 2024 10:33pm
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview Jul 3, 2024 10:33pm
examples-gatsby-web ⬜️ Ignored (Inspect) Visit Preview Jul 3, 2024 10:33pm
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Jul 3, 2024 10:33pm
examples-native-web ⬜️ Ignored (Inspect) Visit Preview Jul 3, 2024 10:33pm
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Jul 3, 2024 10:33pm
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Jul 3, 2024 10:33pm
examples-vite-web ⬜️ Ignored (Inspect) Visit Preview Jul 3, 2024 10:33pm
examples-nonmonorepo ⬜️ Skipped (Inspect) Jul 3, 2024 10:33pm

@vercel vercel bot temporarily deployed to Preview – examples-nonmonorepo July 3, 2024 22:31 Inactive
Copy link
Contributor

github-actions bot commented Jul 3, 2024

🟢 Turbopack Benchmark CI successful 🟢

Thanks

Copy link
Contributor

github-actions bot commented Jul 3, 2024

⚠️ This change may fail to build next-swc.

Logs

packages/next-swc/crates/next-core/src/next_shared/transforms/relay.rs:15:46: �[38;5;9merror[E0061]: this function takes 2 arguments but 1 argument was supplied
error: could not compile `next-core` (lib) due to 1 previous error

See job summary for details

Copy link
Contributor

github-actions bot commented Jul 3, 2024

⚠️ CI failed ⚠️

The following steps have failed in CI:

  • Turbopack Rust tests (mac/win, non-blocking)

See workflow summary for details

Copy link
Member

@bgw bgw left a comment

Choose a reason for hiding this comment

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

Nice find.

@sokra sokra merged commit 8ef95da into main Jul 4, 2024
55 of 58 checks passed
@sokra sokra deleted the wbinnssmith/multi-relay-fallback branch July 4, 2024 14:27
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

4 participants