-
Notifications
You must be signed in to change notification settings - Fork 88
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
Remove old variable in CMake gko_rename_cache
#1471
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1471 +/- ##
===========================================
- Coverage 91.33% 89.30% -2.04%
===========================================
Files 688 688
Lines 56098 56336 +238
===========================================
- Hits 51239 50310 -929
- Misses 4859 6026 +1167 ☔ View full report in Codecov by Sentry. |
79f08df
to
78454bb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we discussed in #1350 , I do not have strong opinions on either one.
I do not get why it introduces the issue. It only throws the warning and should not block any operation. user can unset the variable from cmake command by -U<parameter>
Showing the warning once is fine, but since we can easily fix this, showing it repeatedly is noise. We should keep the amount of noise small to highlight more important warning messages. If a user only had the old variable in their CMakeCache.txt, they won't care we changed it. If they always use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can not comment on whether user do not care or not on some hidden changes.
As a developer, I definitely care 😄 I think deprecation warnings make sense if somebody is actively doing something deprecated, but if it's just a variable they still have in their CMakeCache.txt, we can fix it for them. |
78454bb
to
00b7d4e
Compare
00b7d4e
to
7467743
Compare
Co-authored-by: Marcel Koch <[email protected]>
7467743
to
b16e069
Compare
Error: PR already merged! |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information The version of Java (11.0.3) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. |
I wanted to propose this change to get rid of warning messages on my long-standing repositories, be creative in thinking of potential negative side-effects this might have!
This removes the old variable from cache instead of leaving it around, which leads to the error message only being shown once instead of continuously. Removing variables from cache requires modifying the
CMakeCache.txt
, which isn't something we need to ask of them.