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

Getting error in using "make elvis" #4389

Open
jaspreet-android opened this issue Oct 31, 2024 · 1 comment
Open

Getting error in using "make elvis" #4389

jaspreet-android opened this issue Oct 31, 2024 · 1 comment

Comments

@jaspreet-android
Copy link

MongooseIM version: 6.3
Installed from: source
Erlang/OTP version: erlang 25

Detailed logs are attached.
elvis.log

./rebar3 as lint lint
compiling with FIPS mode enabled
===> No entry for profile lint in config.
===> Verifying dependencies...
===> /Users/jaspreet.chhabra/Documents/mongooseim-3/asn1/XmppAddr.asn1
===> Analyzing applications...
===> Compiling mongooseim
===> Uncaught error in rebar_core. Run with DIAGNOSTIC=1 to see stacktrace or consult rebar3.crashdump
===> When submitting a bug report, please include the output of `rebar3 report "your command"`
make: *** [elvis] Error 1
@fenek
Copy link
Member

fenek commented Nov 4, 2024

Hi,

It's caused by some dependencies, like prometheus_cowboy, referencing rebar3_elvis_plugin which hasn't been maintained for 8 years and also includes a module (elvis_config) that collides with elvis_core plugin used by MongooseIM.
There's no 5-minute fix for it I guess. Either we would need to use a different plugin, or ask the deps' maintainers to update, or somehow blacklist these plugins. Ultimately, you may still use pure elvis tool, without the intermediate call to the rebar3.

Unfortunately the tool hasn't been in use in the CI for a long time - it complains a lot about the current code. However, the bundled config file is probably outdated too.

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

No branches or pull requests

2 participants