-
Notifications
You must be signed in to change notification settings - Fork 33
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
env/option_env failing to be linted by plrustc #393
Comments
It’s unclear to me what effect wiping the environment would have on Postgres. It can get some settings from the environment but I don’t know if that’s during startup only (I’d hope!) or if it happens during runtime too |
This would just be inside plrustc. |
oh. well, should plrust clear the env for the plrust/plrust/src/user_crate/cargo.rs Line 122 in 87a9082
|
Nah, I think we'd do this inside plrustc itself, to make sure we don't mess something up with cargo. |
This is pretty annoying to do correctly so I think we'll do this slightly incorrectly and hope it doesn't break anything. |
On the scale of code crimes we commit, it probably will be far from the top. |
... That is quite true. |
Because this is unrelated to #387 it deserves it's own issue.
Fixing it outright seems difficult (still not sure how), I think it'd probably be fine to try wiping the env on entry to plrustc when compiling the plrust user crate though. Because it seems specific to the env macro (and not a more general thing) that should be enough.
The text was updated successfully, but these errors were encountered: