You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Query macros panic if CARGO environment variable is not set #1021
I've been told the working dir that proc macros are executed in is always the workspace root, but assuming that is always the case isn't really any better than requiring these env vars to be set.
We need some way to know the directory to search in for sqlx-data.json (or .sqlx/ later on) and .env. Any suggestions?
Activity
abonander commentedon Jan 27, 2021
We also require
CARGO_MANIFEST_DIRhttps://github.com/launchbadge/sqlx/blob/af7f2594457e991fd84a97a2170f79801fbdf1df/sqlx-macros/src/query/mod.rs#L54which is where we look for
.env.I've been told the working dir that proc macros are executed in is always the workspace root, but assuming that is always the case isn't really any better than requiring these env vars to be set.
We need some way to know the directory to search in for
sqlx-data.json(or.sqlx/later on) and.env. Any suggestions?fix: Set cargo location