-
Notifications
You must be signed in to change notification settings - Fork 52
Closed
Labels
Milestone
Description
Currently the criteria for checking if the cake version being used by the user is restricted to check if both major+minor versions of the tool is matching the one we build Cake.Recipe with.
This was done due to cake being in a pre 1.0 state and could include breaking changes in any minor release.
Now that cake have reached 1.0, this criteria should be updated to only factor in the major version of cake itself instead of the major+minor check already implemented.
Reference to the place that needs to be updated:
Cake.Recipe/Cake.Recipe/Content/build.cake
Lines 10 to 16 in 538ba93
| public bool IsSupportedCakeVersion(string supportedVersion, string currentVersion) | |
| { | |
| var twoPartSupported = Version.Parse(supportedVersion).ToString(2); | |
| var twoPartCurrent = Version.Parse(currentVersion).ToString(2); | |
| return twoPartCurrent == twoPartSupported; | |
| } |
Reactions are currently unavailable