-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
cargo sqlx prepare picks up queries from another crate #2049
Comments
That's certainly possible. The macros output to the same folder under |
Would you be open to a PR that adds the source crate name to the path, and if so, could you give me some pointers into the source code where this change would need to be made? |
When I run
cargo sqlx prepare -- --lib
inside a crate, it seems to sometimes pick up queries from outside the crate (in another crate, inside the same workspace). This seems to be intermittent -- I see it happening while runningprepare
in a terminal in a VS Code window, while I also have Rust Analyzer enabled which might be rebuilding other parts of the workspace in the background.The text was updated successfully, but these errors were encountered: