Skip to content
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

suppress warnings by type and/or regex #2740

Open
githorse opened this issue Apr 30, 2021 · 4 comments
Open

suppress warnings by type and/or regex #2740

githorse opened this issue Apr 30, 2021 · 4 comments

Comments

@githorse
Copy link

I get the following warnings on most lein tasks:

Warning: implicit hook found: lein-protoc.plugin/hooks 
Hooks are deprecated and will be removed in a future version.
Warning: implicit hook found: lein-dotenv.plugin/hooks 
Hooks are deprecated and will be removed in a future version.

Nothing I personally can do about these except hope the plugins get fixed before they stop working. It would be nice to ignore the warnings in the meantime. Is this possible? (This is a pretty common feature in other build tools -- maybe I've missed it here.)

@technomancy
Copy link
Owner

What version of Leiningen are you using? I think those warnings are gone in the latest stable release.

@githorse
Copy link
Author

I'm on 2.9.1 (Linux Mint 20 apt-get). Just upgraded but I still see it so I assume my version is behind.

However, this question is more general than that -- I assume that warnings like this will come up from time to time in various dependencies (as they have in every project I've ever been on), and it's handy to ignore the ones you have explicitly decided not to fix.

@technomancy
Copy link
Owner

technomancy commented Apr 30, 2021 via email

@technomancy
Copy link
Owner

Thinking about this more, I would accept a patch for a way to supply a regex for silencing warnings. It would probably be best as an environment variable, since warnings can happen before profiles are parsed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants