Skip to content

Improve sqlx prepare invocation error - #4392

Open
mameikagou wants to merge 1 commit into
transact-rs:mainfrom
mameikagou:codex/improve-prepare-invocation-error
Open

Improve sqlx prepare invocation error#4392
mameikagou wants to merge 1 commit into
transact-rs:mainfrom
mameikagou:codex/improve-prepare-invocation-error

Conversation

@mameikagou

Copy link
Copy Markdown

Does your PR solve an issue?

Fixes #4383. When sqlx prepare is invoked directly, report the supported cargo sqlx prepare command without exposing the internal CARGO environment variable.

Is this a breaking change?

No.

Testing

  • Added a regression test for the missing CARGO path
  • cargo test -p sqlx-cli --no-default-features --lib prepare::tests: 2 passed
  • cargo clippy -p sqlx-cli --no-default-features --lib -- -D warnings passed
  • cargo fmt --check --package sqlx-cli passed

@mameikagou
mameikagou marked this pull request as ready for review August 23, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[sqlx-cli] ux bug with sqlx prepare

1 participant