-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Comparison method violates its general contract! #645
Comments
Hello, can you try to provide us which dependencies are triggering this issue? |
This started popping up for me as well, my current setup is:
|
🖖 Hi! |
Encountered the same issue myself. Here's a build scan The code from the build is here Hope this helps! |
If you know which dependency is causing this issue, that would be helpful. I don't have much time to dive into that issue, which I never reproduced on my own projects, but happy to get further help. |
@LouisCAD I was running into the same problem and I believe I managed to determine which dependency is causing the issue: The issue started happening after I fixed a version mismatch between the plugin After I set up both dependencies to use the same version, refreshVersions stopped working with the following error:
I reverted the changes and it worked again. It doesn't matter which version is used, if they're the same, it fails. I had a look at the example project/commit that @mpetuska shared and it's also using the detekt plugin + If I have enough time I will try to create an example project. |
Thank you for pinpointing the involved dependencies! A copy of the part from the No need for a reproducer anymore now. |
After investigating a bit more time I came to the conclusion that it's not the version mismatch per-se... In my case, just having the I created an example project trying to mimic the same setup I have at work in case you're interested. Here's a diff between the failing commit and the working commit: cleberhenriques/ref-ver-detekt-error@26b02ef Also, a buildScan: https://scans.gradle.com/s/khyecc7pdgmhm/failure?expanded-stacktrace=WyIwLTEiXQ#1 |
🐛 Describe the bug
When i run,
./gradlew refreshVersions
, it throws this exception:I manage my dependencies using a TOML file at
gradle/libs.versions.toml
I'm using version 0.51.0
It does not work in my project.
✅ Expected behavior
It should work without exceptions.
💣 Steps to reproduce
📱 Tech info
Unfortunately, I can't provide a build scan due to privacy reasons from my company.
The text was updated successfully, but these errors were encountered: