-
Notifications
You must be signed in to change notification settings - Fork 368
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
opam config report: add the user's environment #3100
Comments
Please don't. A lot of stuff can end up in your environment which are fine locally but shouldn't be disclosed, and it's very easy to just post the output of |
I won't fight too much for this so feel free to close it. But:
|
I am not against including some part of the env, but the point of One possibility would be to include some of them, e.g. any A better option IMO, which is still on open discussion, would be to have opam call sub-commands with a sanitised environment, to limit these "boundless" problems at their root. This may be optional to begin with, but I am afraid it could otherwise also cause problems with many users purposefully using env variables and assuming they are passed through to opam. |
Yeah I don't think it's worth including a selection. Another alternative would be to spit out the environment on increased opam verbosity which is something you usually ask on problems. But that would be even worse w.r.t. to @Drup's point, since there's usually so much information there that you won't bother looking at what you are posting. |
Let's not clutter the tracker with useless issues. Given the relatively cold response, I'll close this for now. |
Following up on #3086 where @AltGr fished for further sanity checks in
opam config report
. I'd suggest to simply add to output the user's environment in the report: it seems the potential for problems from the user's environment is boundless. This could avoid a few message exchanges on error reports.I would also suggest adding a
--no-env
option for users who care about the privacy of their environment.The text was updated successfully, but these errors were encountered: