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(cli): prevent splitting of run args #8893

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chris-olszewski
Copy link
Member

Description

We had a bug where we allowed providing run flags on either side of the run subcommand e.g. turbo --filter=web run build. Any arguments provided before run would be silently ignored in this case.

Background

We support omitting the run subcommand so we duplicate all of the run subcommand arguments on the main turbo command. This allowed for users to specify run commands both on the main turbo command and the run subcommand.

Testing Instructions

Added unit tests for detection and an integration test to show the error message.

Copy link

vercel bot commented Jul 31, 2024

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

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

Copy link
Contributor

🟢 Turbopack Benchmark CI successful 🟢

Thanks

Copy link
Contributor

github-actions bot commented Jul 31, 2024

🟢 CI successful 🟢

Thanks

@chris-olszewski chris-olszewski marked this pull request as draft August 1, 2024 15:44
@chris-olszewski
Copy link
Member Author

Moving back to draft as flags set via environment variables end up in both sets of execution args. Need a different approach to checking if both are used.

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.

2 participants