Skip to content

Commit

Permalink
(cake-buildGH-2501) Prevent exclusion of non-windows
Browse files Browse the repository at this point in the history
This used to be a requirement, but this is no longer the case.  Use the
environment variable behind SkipGitVersion parameter when required.
  • Loading branch information
gep13 committed Mar 19, 2019
1 parent 5fd2df7 commit 48b5aad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/version.cake
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class BuildVersion
string semVersion = null;
string milestone = null;

if (context.IsRunningOnWindows() && !parameters.SkipGitVersion)
if (!parameters.SkipGitVersion)
{
context.Information("Calculating Semantic Version");
if (!parameters.IsLocalBuild || parameters.IsPublishBuild || parameters.IsReleaseBuild)
Expand Down

0 comments on commit 48b5aad

Please sign in to comment.