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(query): validate package name #9370

Merged
merged 7 commits into from
Nov 5, 2024
Merged

Conversation

NicholasLYang
Copy link
Contributor

Description

Before we'd just trust that a package would exist with the name provided. This would lead to errors when using the package but not when constructing it. Now we actually validate it during construction.

Testing Instructions

Added test for invalid package constructor

Copy link

vercel bot commented Nov 1, 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 Nov 4, 2024 11:22pm
8 Skipped Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Nov 4, 2024 11:22pm
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview Nov 4, 2024 11:22pm
examples-gatsby-web ⬜️ Ignored (Inspect) Visit Preview Nov 4, 2024 11:22pm
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Nov 4, 2024 11:22pm
examples-native-web ⬜️ Ignored (Inspect) Visit Preview Nov 4, 2024 11:22pm
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Nov 4, 2024 11:22pm
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Nov 4, 2024 11:22pm
examples-vite-web ⬜️ Ignored (Inspect) Visit Preview Nov 4, 2024 11:22pm

crates/turborepo-lib/src/commands/query.rs Outdated Show resolved Hide resolved
crates/turborepo-lib/src/query/mod.rs Show resolved Hide resolved
crates/turborepo-lib/src/query/package.rs Show resolved Hide resolved
@NicholasLYang NicholasLYang merged commit 3d9b259 into main Nov 5, 2024
40 checks passed
@NicholasLYang NicholasLYang deleted the fix/validate-package-query branch November 5, 2024 16:10
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