diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1209ef9f18..57321ab790 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - os: [windows-latest, macos-latest, ubuntu-latest] + os: [windows-latest, macos-13, ubuntu-latest] steps: - name: Get the sources uses: actions/checkout@v3 diff --git a/src/Cake.Cli/Cake.Cli.csproj b/src/Cake.Cli/Cake.Cli.csproj index ff78776c37..eed7226fd0 100644 --- a/src/Cake.Cli/Cake.Cli.csproj +++ b/src/Cake.Cli/Cake.Cli.csproj @@ -19,7 +19,7 @@ - - + + \ No newline at end of file diff --git a/src/Cake/Commands/DefaultCommand.cs b/src/Cake/Commands/DefaultCommand.cs index 9b860e4c38..dd3871f059 100644 --- a/src/Cake/Commands/DefaultCommand.cs +++ b/src/Cake/Commands/DefaultCommand.cs @@ -129,10 +129,11 @@ private static CakeArguments CreateCakeArguments(IRemainingArguments remainingAr // Keep the actual remaining arguments in the cake arguments foreach (var group in remainingArguments.Parsed) { - arguments[group.Key] = new List(); + string key = group.Key.TrimStart('-'); + arguments[key] = new List(); foreach (var argument in group) { - arguments[group.Key].Add(argument); + arguments[key].Add(argument); } } diff --git a/tests/integration/Cake.Common/Tools/DotNet/DotNetAliases.cake b/tests/integration/Cake.Common/Tools/DotNet/DotNetAliases.cake index 63f9ef61f2..7b06a8f8bd 100644 --- a/tests/integration/Cake.Common/Tools/DotNet/DotNetAliases.cake +++ b/tests/integration/Cake.Common/Tools/DotNet/DotNetAliases.cake @@ -282,6 +282,7 @@ Task("Cake.Common.Tools.DotNet.DotNetAliases.DotNetWorkloadSearch") Task("Cake.Common.Tools.DotNet.DotNetAliases.DotNetWorkloadRepair") .IsDependentOn("Cake.Common.Tools.DotNet.DotNetAliases.Setup") + .OnError(exception => { Console.WriteLine(exception); }) .Does(() => { // When diff --git a/tests/integration/Cake.Core/Scripting/AddinDirective.cake b/tests/integration/Cake.Core/Scripting/AddinDirective.cake index f9ee839f33..678504e28d 100644 --- a/tests/integration/Cake.Core/Scripting/AddinDirective.cake +++ b/tests/integration/Cake.Core/Scripting/AddinDirective.cake @@ -67,7 +67,7 @@ Task("Cake.Core.Scripting.AddinDirective.LoadNativeAssemblies") { FilePath cakeCore = typeof(ICakeContext).GetTypeInfo().Assembly.Location; FilePath cake = cakeCore.GetDirectory().CombineWithFilePath("Cake.dll"); - var script = @"#addin nuget:?package=Cake.Git&version=2.0.0 + var script = @"#addin nuget:?package=Cake.Git&version=4.0.0 var repoRoot = GitFindRootFromPath(Context.EnvironmentVariable(""CAKE_TEST_DIR""));