Replies: 5 comments 1 reply
-
Yes - you're correct in that this change should not have broken anything in 4.X release. I'll need to look into it. Regarding the flow - I see it like this
If you accidentally checkin the change to
|
Beta Was this translation helpful? Give feedback.
-
It would be better to have external control over the updateSnapshot. |
Beta Was this translation helpful? Give feedback.
-
@uk-taniyama it's currently not an environment variable - it's a system property. An environment variable would make it easier for people to control. But I'm not too enthusiastic to now support 3 different ways of accomplishing this. |
Beta Was this translation helpful? Give feedback.
-
I have put in a fix for this in 4.0.5 I'll now move this to a discussion |
Beta Was this translation helpful? Give feedback.
-
Actually, I was pretty happy with the old way to update snapshots by passing -PupdateSnapshot to the test task. Sure, it was necessary to use some gradle tricks to get it working, but once it worked, it was pretty convenient. Personally, I dont really like the way it is implemented now with setting the property in the file to |
Beta Was this translation helpful? Give feedback.
-
Hello,
I updated recently from 4.0.2 to 4.0.3 and immediately got a failure on CI due to snapshot tests, which I suppose shouldn't be the case for the patch release when nothing changed except the dependency.
Tests started to complain on
as we specify
updateSnapshot=false
in our gradle config by defaultI think the reason for that is the logic introduced with this change here: 194f256#diff-6c0dc58e8f7f6174ee8150ac6b242ba7bbebecf5ed998c9f786cf056163aa189R122
(#145)
It checks only for the presence of the property, but not the value, whereas before absence and the
false
value were equal.Perhaps, you could bring the
false
value for the old property to be considered asnone
? That would be much appreciated to allow the smooth migration process.p.s. the new flow with the property value change seems not obvious to me - would you mind describing the way you see it? As I'm always afraid to accidentally commit the property file after changing it to
all
. Thank you in advance.Beta Was this translation helpful? Give feedback.
All reactions