-
Notifications
You must be signed in to change notification settings - Fork 44
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
[FEATURE] Allow user to disable or silence valueFromEnvironmentNotice
warnings
#407
Comments
+1 for this. We manage the version via nix and we have a lot of scripting around the doppler cli and now we see this warning dozens of times per day. Please at least disable it in the next version until you found a better solution like @wconnorwalsh suggested. |
Any updates on this? |
This is on our radar but we don't have any updates to share at this time. |
Cool cool. If you like I could send a PR with that one line commented out until you can figure out a proper solution... |
This warning is important and we would prefer to keep it enabled in the general case. This behavior will be opt-out, rather than opt-in. |
Thanks again for your feedback on this, @agilesteel and @wconnorwalsh! Please let us know if the |
Already tested. All good. |
Looks great – thank you!! |
Is your feature request related to a problem? Please describe.
When using environment variables to configure Doppler, the
valueFromEnvironmentNotice
CLI function writes a warning to stderr each time a Doppler command is executed. This behavior can be irritating, especially when executingdoppler run
dozens of times per day.I understand that these messages were originally printed to stdout, but due to the "noisiness" of the output, they were later changed to stderr. I think that solved one issue while creating the same issue somewhere else. These messages are warnings, not output or errors.
Describe the solution you'd like
There are a couple of different approaches that would work:
valueFromEnvironmentNotice
warnings, either by executing a config command and storing the preference, setting an environment variable, or warning once per session (or day) and requiring the user to agree on the CLI withy/n
before continuing.--verbose
,--debug
, or--enable-warnings
?Describe alternatives you've considered
I've tried wrapping the doppler CLI binary in a shell function that redirects all stderr output to /dev/null. This quickly became overly complicated and required additional logic to ensure "valid" stderr actually was emitted.
Additional context
This behavior creates other unintended consequences. This issue was raised in connection with a related issue with the Doppler VSCode extension (DopplerHQ/vscode#22). Allowing users to disable or silence these warning provides greater flexibility and usability for customers who prefer to use environment variables to configure Doppler.
The text was updated successfully, but these errors were encountered: