chocolatey / Chocolatey.Cake.Recipe

A set of convention based Cake scripts for building Chocolatey projects
Apache License 2.0
5 stars 9 forks source link

Running against tags throws a NullReferenceException #89

Closed AdmiringWorm closed 2 years ago

AdmiringWorm commented 2 years ago

What You Are Seeing?

We running the build on a checked out tag, the build throws at an exception about a null reference exception occurring. This seems to happen because we are using the variable branchName in parameters.cake that will be null when a tag is checked out.

What is Expected?

No build errors when checking out tags.

How Did You Get This To Happen? (Steps to Reproduce)

  1. Checkout the latest tag in chocolatey/choco repository
  2. Run \build.ps1
  3. Notice it complains about an exception

System Details

Output Log

Full Log Output

~~~sh Preparing to run build script... Running build script... Skipping verification of assembly 'Cake.MyGet.Module, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The assembly 'Cake.MyGet.Module, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is referencing an older version of Cake.Core (0.30.0). For best compatibility it should target Cake.Core version 0.33.0. Skipping verification of assembly 'Cake.TeamCity.Module, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The assembly 'Cake.TeamCity.Module, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is referencing an older version of Cake.Core (0.30.0). For best compatibility it should target Cake.Core version 0.33.0. Skipping verification of assembly 'Cake.TFBuild.Module, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The assembly 'Cake.TFBuild.Module, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is referencing an older version of Cake.Core (0.30.0). For best compatibility it should target Cake.Core version 0.33.0. Skipping verification of assembly 'Cake.TravisCI.Module, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The assembly 'Cake.TravisCI.Module, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is referencing an older version of Cake.Core (0.30.0). For best compatibility it should target Cake.Core version 0.33.0. Skipping verification of assembly 'Cake.DotNetTool.Module, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null'. Registering module Cake.MyGet.Module.MyGetModule... Registering module Cake.TeamCity.Module.TeamCityModule... Registering module Cake.TFBuild.Module.TFBuildModule... Registering module Cake.TravisCI.Module.TravisCIModule... Registering module Cake.DotNetTool.Module.DotNetToolModule... NuGet Config not specified. Will use NuGet default mechanism for resolving it. Analyzing build script... Analyzing E:/repos/orgs/chocolatey/choco/choco/recipe.cake... Analyzing E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/addins.cake... Analyzing E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/analyzing.cake... Analyzing E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/build.cake... Analyzing E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/buildData.cake... Analyzing E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/buildProvider.cake... Analyzing E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/configuration.cake... Analyzing E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/configurationBuilder.cake... Analyzing E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/credentials.cake... Analyzing E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/eazfuscator.cake... Analyzing E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/environment.cake... Analyzing E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/github-actions.cake... Analyzing E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/gitreleasemanager.cake... Analyzing E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/gitversion.cake... Analyzing E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/ilmerge.cake... Analyzing E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/localbuild.cake... Analyzing E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/modules.cake... Analyzing E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/packages.cake... Analyzing E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/packageSourceData.cake... Analyzing E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/parameters.cake... Analyzing E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/paths.cake... Analyzing E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/sign.cake... Analyzing E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/strongname.cake... Analyzing E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/tasks.cake... Analyzing E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/teamcity.cake... Analyzing E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/testing.cake... Analyzing E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/tools.cake... Analyzing E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/toolsettings.cake... Analyzing E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/transifex.cake... Analyzing E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/version.cake... Processing build script... Installing tools... Installing addins... The addin Cake.Coverlet will reference Cake.Coverlet.dll. The addin Cake.Eazfuscator.Net will reference Cake.Eazfuscator.Net.dll. The addin Cake.Figlet will reference Cake.Figlet.dll. The addin Cake.FileHelpers will reference Cake.FileHelpers.dll. The addin Cake.Git will reference Cake.Git.dll. The addin Cake.Git will reference LibGit2Sharp.dll. The addin Cake.Gulp will reference Cake.Gulp.dll. The addin Cake.Incubator will reference Cake.Incubator.dll. The addin Cake.Issues will reference Cake.Issues.dll. The addin Cake.Issues.MsBuild will reference Cake.Issues.MsBuild.dll. The addin Cake.Issues.MsBuild will reference Microsoft.Build.Framework.dll. The addin Cake.Issues.MsBuild will reference Microsoft.Build.Utilities.Core.dll. The addin Cake.Issues.MsBuild will reference StructuredLogger.dll. The addin Cake.Issues.MsBuild will reference System.Collections.Immutable.dll. The addin Cake.Issues.InspectCode will reference Cake.Issues.InspectCode.dll. The addin Cake.Issues.Reporting will reference Cake.Issues.Reporting.dll. The addin Cake.Issues.Reporting.Generic will reference Cake.Issues.Reporting.Generic.dll. The addin Cake.Issues.Reporting.Generic will reference RazorEngine.dll. The addin Cake.Issues.Reporting.Generic will reference System.Web.Razor.dll. The addin Cake.Json will reference Cake.Json.dll. The addin Cake.Kudu will reference Cake.Kudu.dll. The addin Cake.Npm will reference Cake.Npm.dll. The addin Cake.PowerShell will reference Cake.Powershell.dll. The addin Cake.PowerShell will reference System.Management.Automation.dll. The addin Cake.ReSharperReports will reference Cake.ReSharperReports.dll. The addin Cake.StrongNameSigner will reference Cake.StrongNameSigner.dll. The addin Cake.StrongNameTool will reference cake.strongnametool.dll. The addin Cake.Transifex will reference Cake.Transifex.dll. The addin MagicChunks will reference MagicChunks.Cake.dll. The addin MagicChunks will reference MagicChunks.dll. The addin Cake.Issues.PullRequests will reference Cake.Issues.PullRequests.dll. The addin Cake.Issues.PullRequests.AppVeyor will reference Cake.Issues.PullRequests.AppVeyor.dll. Skipping verification of assembly 'Cake.Coverlet, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null'. Skipping verification of assembly 'Cake.Eazfuscator.Net, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null'. The assembly 'Cake.Eazfuscator.Net, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null' is referencing an older version of Cake.Core (0.28.0). For best compatibility it should target Cake.Core version 0.33.0. Skipping verification of assembly 'Cake.Figlet, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null'. The assembly 'Cake.Figlet, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null' is referencing an older version of Cake.Core (0.28.0). For best compatibility it should target Cake.Core version 0.33.0. Skipping verification of assembly 'Cake.FileHelpers, Version=3.2.0.0, Culture=neutral, PublicKeyToken=null'. Skipping verification of assembly 'Cake.Git, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null'. Skipping verification of assembly 'LibGit2Sharp, Version=0.27.0.0, Culture=neutral, PublicKeyToken=7cbde695407f0333'. Skipping verification of assembly 'Cake.Gulp, Version=0.11.0.0, Culture=neutral, PublicKeyToken=null'. The assembly 'Cake.Gulp, Version=0.11.0.0, Culture=neutral, PublicKeyToken=null' is referencing an older version of Cake.Core (0.28.0). For best compatibility it should target Cake.Core version 0.33.0. Skipping verification of assembly 'Cake.Incubator, Version=5.1.0.0, Culture=neutral, PublicKeyToken=null'. Skipping verification of assembly 'Cake.Issues, Version=0.7.1.0, Culture=neutral, PublicKeyToken=null'. Skipping verification of assembly 'Cake.Issues.MsBuild, Version=0.7.2.0, Culture=neutral, PublicKeyToken=null'. Skipping verification of assembly 'Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Skipping verification of assembly 'Microsoft.Build.Utilities.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Skipping verification of assembly 'StructuredLogger, Version=2.0.94.0, Culture=neutral, PublicKeyToken=d4c7181801cb6448'. Skipping verification of assembly 'System.Collections.Immutable, Version=1.2.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Skipping verification of assembly 'Cake.Issues.InspectCode, Version=0.7.1.0, Culture=neutral, PublicKeyToken=null'. Skipping verification of assembly 'Cake.Issues.Reporting, Version=0.7.0.0, Culture=neutral, PublicKeyToken=null'. Skipping verification of assembly 'Cake.Issues.Reporting.Generic, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Skipping verification of assembly 'RazorEngine, Version=3.10.0.0, Culture=neutral, PublicKeyToken=9ee697374c7e744a'. Skipping verification of assembly 'System.Web.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Skipping verification of assembly 'Cake.Json, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null'. Skipping verification of assembly 'Cake.Kudu, Version=0.8.0.0, Culture=neutral, PublicKeyToken=null'. The assembly 'Cake.Kudu, Version=0.8.0.0, Culture=neutral, PublicKeyToken=null' is referencing an older version of Cake.Core (0.28.0). For best compatibility it should target Cake.Core version 0.33.0. Skipping verification of assembly 'Cake.Npm, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. The assembly 'Cake.Npm, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' is referencing an older version of Cake.Core (0.28.0). For best compatibility it should target Cake.Core version 0.33.0. Skipping verification of assembly 'Cake.Powershell, Version=0.4.8.0, Culture=neutral, PublicKeyToken=null'. Skipping verification of assembly 'System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Skipping verification of assembly 'Cake.ReSharperReports, Version=0.10.0.0, Culture=neutral, PublicKeyToken=null'. The assembly 'Cake.ReSharperReports, Version=0.10.0.0, Culture=neutral, PublicKeyToken=null' is referencing an older version of Cake.Core (0.28.0). For best compatibility it should target Cake.Core version 0.33.0. Skipping verification of assembly 'Cake.StrongNameSigner, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null'. Skipping verification of assembly 'cake.strongnametool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. The assembly 'cake.strongnametool, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' is referencing an older version of Cake.Core (0.25.0). This assembly must reference at least Cake.Core version 0.26.0. Another option is to downgrade Cake to an earlier version. It's not recommended, but you can explicitly opt out of assembly verification by configuring the Skip Verification setting to true (i.e. command line parameter "--settings_skipverification=true", environment variable "CAKE_SETTINGS_SKIPVERIFICATION=true", read more about configuration at https://cakebuild.net/docs/fundamentals/configuration) Skipping verification of assembly 'Cake.Transifex, Version=1.0.1.0, Culture=neutral, PublicKeyToken=null'. Skipping verification of assembly 'MagicChunks.Cake, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The assembly 'MagicChunks.Cake, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is referencing an older version of Cake.Core (0.23.0). This assembly must reference at least Cake.Core version 0.26.0. Another option is to downgrade Cake to an earlier version. It's not recommended, but you can explicitly opt out of assembly verification by configuring the Skip Verification setting to true (i.e. command line parameter "--settings_skipverification=true", environment variable "CAKE_SETTINGS_SKIPVERIFICATION=true", read more about configuration at https://cakebuild.net/docs/fundamentals/configuration) Skipping verification of assembly 'MagicChunks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Skipping verification of assembly 'Cake.Issues.PullRequests, Version=0.7.0.0, Culture=neutral, PublicKeyToken=null'. Skipping verification of assembly 'Cake.Issues.PullRequests.AppVeyor, Version=0.7.0.0, Culture=neutral, PublicKeyToken=null'. Adding assembly reference to mscorlib.dll... Adding assembly reference to System.Core.dll... Adding assembly reference to Microsoft.CSharp.dll... Adding assembly reference to Cake.Core.dll... Adding assembly reference to Cake.Common.dll... Adding assembly reference to Cake.exe... Adding assembly reference to System.dll... Adding assembly reference to System.Xml.dll... Adding assembly reference to System.Xml.Linq.dll... Adding assembly reference to System.Data.dll... Adding assembly reference to System.Runtime.dll... Adding assembly reference to System.Collections.dll... Adding assembly reference to System.Net.Http.dll... Adding assembly reference to netstandard.dll... Adding assembly reference to Cake.Coverlet.dll... Adding assembly reference to Cake.Eazfuscator.Net.dll... Adding assembly reference to Cake.Figlet.dll... Adding assembly reference to Cake.FileHelpers.dll... Adding assembly reference to Cake.Git.dll... Adding assembly reference to LibGit2Sharp.dll... Adding assembly reference to Cake.Gulp.dll... Adding assembly reference to Cake.Incubator.dll... Adding assembly reference to Cake.Issues.dll... Adding assembly reference to Cake.Issues.MsBuild.dll... Adding assembly reference to Microsoft.Build.Framework.dll... Adding assembly reference to Microsoft.Build.Utilities.Core.dll... Adding assembly reference to StructuredLogger.dll... Adding assembly reference to System.Collections.Immutable.dll... Adding assembly reference to Cake.Issues.InspectCode.dll... Adding assembly reference to Cake.Issues.Reporting.dll... Adding assembly reference to Cake.Issues.Reporting.Generic.dll... Adding assembly reference to RazorEngine.dll... Adding assembly reference to System.Web.Razor.dll... Adding assembly reference to Cake.Json.dll... Adding assembly reference to Cake.Kudu.dll... Adding assembly reference to Cake.Npm.dll... Adding assembly reference to Cake.Powershell.dll... Adding assembly reference to System.Management.Automation.dll... Adding assembly reference to Cake.ReSharperReports.dll... Adding assembly reference to Cake.StrongNameSigner.dll... Adding assembly reference to cake.strongnametool.dll... Adding assembly reference to Cake.Transifex.dll... Adding assembly reference to MagicChunks.Cake.dll... Adding assembly reference to MagicChunks.dll... Adding assembly reference to Cake.Issues.PullRequests.dll... Adding assembly reference to Cake.Issues.PullRequests.AppVeyor.dll... Importing namespace Cake.Common... Importing namespace Cake.Common.Build... Importing namespace Cake.Common.Build.AppVeyor... Importing namespace Cake.Common.Build.AppVeyor.Data... Importing namespace Cake.Common.Build.AzurePipelines... Importing namespace Cake.Common.Build.AzurePipelines.Data... Importing namespace Cake.Common.Build.Bamboo... Importing namespace Cake.Common.Build.Bamboo.Data... Importing namespace Cake.Common.Build.BitbucketPipelines... Importing namespace Cake.Common.Build.BitbucketPipelines.Data... Importing namespace Cake.Common.Build.Bitrise... Importing namespace Cake.Common.Build.Bitrise.Data... Importing namespace Cake.Common.Build.ContinuaCI... Importing namespace Cake.Common.Build.ContinuaCI.Data... Importing namespace Cake.Common.Build.GitHubActions... Importing namespace Cake.Common.Build.GitHubActions.Data... Importing namespace Cake.Common.Build.GitLabCI... Importing namespace Cake.Common.Build.GitLabCI.Data... Importing namespace Cake.Common.Build.GoCD... Importing namespace Cake.Common.Build.GoCD.Data... Importing namespace Cake.Common.Build.Jenkins... Importing namespace Cake.Common.Build.Jenkins.Data... Importing namespace Cake.Common.Build.MyGet... Importing namespace Cake.Common.Build.TeamCity... Importing namespace Cake.Common.Build.TFBuild... Importing namespace Cake.Common.Build.TFBuild.Data... Importing namespace Cake.Common.Build.TravisCI... Importing namespace Cake.Common.Build.TravisCI.Data... Importing namespace Cake.Common.Diagnostics... Importing namespace Cake.Common.IO... Importing namespace Cake.Common.IO.Paths... Importing namespace Cake.Common.Net... Importing namespace Cake.Common.Security... Importing namespace Cake.Common.Solution... Importing namespace Cake.Common.Solution.Project... Importing namespace Cake.Common.Solution.Project.Properties... Importing namespace Cake.Common.Solution.Project.XmlDoc... Importing namespace Cake.Common.Text... Importing namespace Cake.Common.Tools... Importing namespace Cake.Common.Tools.Cake... Importing namespace Cake.Common.Tools.Chocolatey... Importing namespace Cake.Common.Tools.Chocolatey.ApiKey... Importing namespace Cake.Common.Tools.Chocolatey.Config... Importing namespace Cake.Common.Tools.Chocolatey.Download... Importing namespace Cake.Common.Tools.Chocolatey.Features... Importing namespace Cake.Common.Tools.Chocolatey.Install... Importing namespace Cake.Common.Tools.Chocolatey.New... Importing namespace Cake.Common.Tools.Chocolatey.Pack... Importing namespace Cake.Common.Tools.Chocolatey.Pin... Importing namespace Cake.Common.Tools.Chocolatey.Push... Importing namespace Cake.Common.Tools.Chocolatey.Sources... Importing namespace Cake.Common.Tools.Chocolatey.Uninstall... Importing namespace Cake.Common.Tools.Chocolatey.Upgrade... Importing namespace Cake.Common.Tools.DotCover... Importing namespace Cake.Common.Tools.DotCover.Analyse... Importing namespace Cake.Common.Tools.DotCover.Cover... Importing namespace Cake.Common.Tools.DotCover.Merge... Importing namespace Cake.Common.Tools.DotCover.Report... Importing namespace Cake.Common.Tools.DotNetCore... Importing namespace Cake.Common.Tools.DotNetCore.Build... Importing namespace Cake.Common.Tools.DotNetCore.BuildServer... Importing namespace Cake.Common.Tools.DotNetCore.Clean... Importing namespace Cake.Common.Tools.DotNetCore.Execute... Importing namespace Cake.Common.Tools.DotNetCore.MSBuild... Importing namespace Cake.Common.Tools.DotNetCore.NuGet.Delete... Importing namespace Cake.Common.Tools.DotNetCore.NuGet.Push... Importing namespace Cake.Common.Tools.DotNetCore.NuGet.Source... Importing namespace Cake.Common.Tools.DotNetCore.Pack... Importing namespace Cake.Common.Tools.DotNetCore.Publish... Importing namespace Cake.Common.Tools.DotNetCore.Restore... Importing namespace Cake.Common.Tools.DotNetCore.Run... Importing namespace Cake.Common.Tools.DotNetCore.Test... Importing namespace Cake.Common.Tools.DotNetCore.Tool... Importing namespace Cake.Common.Tools.DotNetCore.VSTest... Importing namespace Cake.Common.Tools.DupFinder... Importing namespace Cake.Common.Tools.Fixie... Importing namespace Cake.Common.Tools.GitLink... Importing namespace Cake.Common.Tools.GitReleaseManager... Importing namespace Cake.Common.Tools.GitReleaseManager.AddAssets... Importing namespace Cake.Common.Tools.GitReleaseManager.Close... Importing namespace Cake.Common.Tools.GitReleaseManager.Create... Importing namespace Cake.Common.Tools.GitReleaseManager.Discard... Importing namespace Cake.Common.Tools.GitReleaseManager.Export... Importing namespace Cake.Common.Tools.GitReleaseManager.Label... Importing namespace Cake.Common.Tools.GitReleaseManager.Open... Importing namespace Cake.Common.Tools.GitReleaseManager.Publish... Importing namespace Cake.Common.Tools.GitReleaseNotes... Importing namespace Cake.Common.Tools.GitVersion... Importing namespace Cake.Common.Tools.ILMerge... Importing namespace Cake.Common.Tools.ILRepack... Importing namespace Cake.Common.Tools.InnoSetup... Importing namespace Cake.Common.Tools.InspectCode... Importing namespace Cake.Common.Tools.MSBuild... Importing namespace Cake.Common.Tools.MSpec... Importing namespace Cake.Common.Tools.MSTest... Importing namespace Cake.Common.Tools.NSIS... Importing namespace Cake.Common.Tools.NuGet... Importing namespace Cake.Common.Tools.NuGet.Add... Importing namespace Cake.Common.Tools.NuGet.Delete... Importing namespace Cake.Common.Tools.NuGet.Init... Importing namespace Cake.Common.Tools.NuGet.Install... Importing namespace Cake.Common.Tools.NuGet.List... Importing namespace Cake.Common.Tools.NuGet.Pack... Importing namespace Cake.Common.Tools.NuGet.Push... Importing namespace Cake.Common.Tools.NuGet.Restore... Importing namespace Cake.Common.Tools.NuGet.SetApiKey... Importing namespace Cake.Common.Tools.NuGet.SetProxy... Importing namespace Cake.Common.Tools.NuGet.Sources... Importing namespace Cake.Common.Tools.NuGet.Update... Importing namespace Cake.Common.Tools.NUnit... Importing namespace Cake.Common.Tools.OctopusDeploy... Importing namespace Cake.Common.Tools.OpenCover... Importing namespace Cake.Common.Tools.ReportGenerator... Importing namespace Cake.Common.Tools.ReportUnit... Importing namespace Cake.Common.Tools.Roundhouse... Importing namespace Cake.Common.Tools.SignTool... Importing namespace Cake.Common.Tools.SpecFlow... Importing namespace Cake.Common.Tools.SpecFlow.StepDefinitionReport... Importing namespace Cake.Common.Tools.SpecFlow.TestExecutionReport... Importing namespace Cake.Common.Tools.TextTransform... Importing namespace Cake.Common.Tools.VSTest... Importing namespace Cake.Common.Tools.VSWhere... Importing namespace Cake.Common.Tools.VSWhere.All... Importing namespace Cake.Common.Tools.VSWhere.Latest... Importing namespace Cake.Common.Tools.VSWhere.Legacy... Importing namespace Cake.Common.Tools.VSWhere.Product... Importing namespace Cake.Common.Tools.WiX... Importing namespace Cake.Common.Tools.WiX.Heat... Importing namespace Cake.Common.Tools.XBuild... Importing namespace Cake.Common.Tools.XUnit... Importing namespace Cake.Common.Xml... Importing namespace Cake.Core... Importing namespace Cake.Core.Diagnostics... Importing namespace Cake.Core.IO... Importing namespace Cake.Core.Scripting... Importing namespace Cake.Coverlet... Importing namespace Cake.Eazfuscator.Net... Importing namespace Cake.Figlet... Importing namespace Cake.FileHelpers... Importing namespace Cake.Git... Importing namespace Cake.Gulp... Importing namespace Cake.Incubator.AssertExtensions... Importing namespace Cake.Incubator.DotNetBuildExtensions... Importing namespace Cake.Incubator.DotNetCoreTestExtensions... Importing namespace Cake.Incubator.EnumerableExtensions... Importing namespace Cake.Incubator.FileExtensions... Importing namespace Cake.Incubator.FilePathExtensions... Importing namespace Cake.Incubator.FileSystemExtensions... Importing namespace Cake.Incubator.GlobbingExtensions... Importing namespace Cake.Incubator.LoggingExtensions... Importing namespace Cake.Incubator.Project... Importing namespace Cake.Incubator.ProjectPathExtensions... Importing namespace Cake.Incubator.SolutionParserExtensions... Importing namespace Cake.Incubator.StringExtensions... Importing namespace Cake.Issues... Importing namespace Cake.Issues.InspectCode... Importing namespace Cake.Issues.MsBuild... Importing namespace Cake.Issues.PullRequests... Importing namespace Cake.Issues.PullRequests.AppVeyor... Importing namespace Cake.Issues.Reporting... Importing namespace Cake.Issues.Reporting.Generic... Importing namespace Cake.Json... Importing namespace Cake.Kudu... Importing namespace Cake.Kudu.KuduSync... Importing namespace Cake.Kudu.Provider... Importing namespace Cake.Npm... Importing namespace Cake.Npm.AddUser... Importing namespace Cake.Npm.Ci... Importing namespace Cake.Npm.Install... Importing namespace Cake.Npm.Pack... Importing namespace Cake.Npm.Prune... Importing namespace Cake.Npm.Publish... Importing namespace Cake.Npm.Rebuild... Importing namespace Cake.Npm.RunScript... Importing namespace Cake.Npm.Set... Importing namespace Cake.Npm.Update... Importing namespace Cake.Npm.Version... Importing namespace Cake.Powershell... Importing namespace Cake.ReSharperReports... Importing namespace Cake.StrongNameSigner... Importing namespace Cake.StrongNameTool... Importing namespace Cake.Transifex... Importing namespace MagicChunks... Importing namespace MagicChunks.Cake... Importing namespace MagicChunks.Core... Importing namespace Newtonsoft.Json.Linq... Importing namespace System... Importing namespace System.Collections.Generic... Importing namespace System.Diagnostics... Importing namespace System.IO... Importing namespace System.Linq... Importing namespace System.Management.Automation... Importing namespace System.Text... Importing namespace System.Threading.Tasks... Importing namespace System.Xml.Linq... Importing namespace System.Xml.XPath... Compiling build script... (3738,12): warning CS1701: Assuming assembly reference 'Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' used by 'Cake.Json' matches identity 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' of 'Newtonsoft.Json', you may need to supply runtime policy (3744,12): warning CS1701: Assuming assembly reference 'Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' used by 'Cake.Json' matches identity 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' of 'Newtonsoft.Json', you may need to supply runtime policy E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/build.cake(215,13): warning CS0618: 'CustomProjectParserResult.OutputPath' is obsolete: 'Use OutputPaths instead for multi-targeting support' E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/build.cake(217,44): warning CS0618: 'CustomProjectParserResult.OutputPath' is obsolete: 'Use OutputPaths instead for multi-targeting support' E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/build.cake(322,36): warning CS0618: 'CustomProjectParserResult.OutputPath' is obsolete: 'Use OutputPaths instead for multi-targeting support' E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/build.cake(333,32): warning CS0618: 'CustomProjectParserResult.OutputPath' is obsolete: 'Use OutputPaths instead for multi-targeting support' E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/build.cake(341,32): warning CS0618: 'CustomProjectParserResult.OutputPath' is obsolete: 'Use OutputPaths instead for multi-targeting support' E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/build.cake(385,29): warning CS0618: 'CustomProjectParserResult.OutputPath' is obsolete: 'Use OutputPaths instead for multi-targeting support' E:/repos/orgs/chocolatey/choco/choco/tools/Chocolatey.Cake.Recipe.0.16.0/Content/build.cake(386,36): warning CS0618: 'CustomProjectParserResult.OutputPath' is obsolete: 'Use OutputPaths instead for multi-targeting support' Using Local Build Provider... Testing to see if valid git repository... Could not resolve path for tool "git" using these directories: E:/repos/orgs/chocolatey/choco-licensed-management-ui/.dotnet,E:/repos/orgs/chocolatey/choco-licensed-management-ui/.dotnet,C:/Program Files (x86)/Gapotchenko/Eazfuscator.NET,C:/Windows/system32,C:/Windows,C:/Windows/System32/Wbem,C:/Windows/System32/WindowsPowerShell/v1.0,C:/Windows/System32/OpenSSH,C:/ProgramData/chocolatey/bin,C:/Program Files/Git/cmd,C:/Program Files/Microsoft VS Code/bin,C:/Program Files (x86)/Gpg4win/../GnuPG/bin,C:/Program Files (x86)/Microsoft SQL Server/150/DTS/Binn,C:/tools/gsudo/Current,C:/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn,C:/Program Files (x86)/Microsoft SQL Server/150/Tools/Binn,C:/Program Files/Microsoft SQL Server/150/Tools/Binn,C:/Program Files/Microsoft SQL Server/150/DTS/Binn,C:/Program Files/dotnet,C:/Program Files/Microsoft SQL Server/130/Tools/Binn,C:/Program Files/GitHub CLI,C:/Program Files/Microsoft Windows Performance Toolkit,C:/Program Files (x86)/Windows Kits/8.0/Windows Performance Toolkit,C:/Program Files (x86)/Yarn/bin,E:/repos/orgs/chocolatey/choco-licensed-services/src/chocolatey.services.agent.host/bin/Debug/bin,C:/Program Files/PowerShell/7,C:/Program Files/nodejs,C:/HashiCorp/Vagrant/bin,C:/Users/Kim/AppData/Local/Microsoft/WindowsApps,C:/Program Files/Azure Data Studio/bin,C:/Users/Kim/.dotnet/tools,C:/Program Files/Oracle/VirtualBox,C:/Users/Kim/AppData/Local/Yarn/bin,C:/Users/Kim/.dotnet/tools,C:/tools/git/bin,C:/Users/Kim/AppData/Roaming/npm Resolved tool to path C:/Program Files/Git/cmd/git.exe What version of git are we using... Executing: "git" --version git version 2.36.1.windows.1 Getting current branch name... Executing: "git" branch --show-current Testing to see if current commit contains a tag... Executing: "git" tag -l --points-at HEAD 1.2.0 Tag name is 1.2.0 Error: System.AggregateException: Det oppsto én eller flere feil. ---> System.NullReferenceException: Objektreferanse er ikke satt til en objektforekomst. ved Submission#0.BuildParameters.SetParameters(ICakeContext context, BuildSystem buildSystem, DirectoryPath sourceDirectoryPath, String title, String certificateSubjectName, String developBranchName, FilePath fullReleaseNotesFilePath, Func`1 getFilesToObfuscate, Func`1 getFilesToSign, Func`1 getILMergeConfigs, Func`1 getMsisToSign, Func`1 getProjectsToPack, Func`1 getScriptsToSign, String integrationTestScriptPath, String masterBranchName, FilePath milestoneReleaseNotesFilePath, ICollection`1 nuGetSources, Boolean obfuscateAssembly, List`1 packageSourceDatas, Boolean preferDotNetGlobalToolUsage, String preReleaseLabelFilePath, Boolean productClsCompliant, String productCompany, Boolean productComVisible, String productCopyright, ICollection`1 productCustomAttributes, String productDescription, String productName, String productTrademark, String repositoryName, String repositoryOwner, String resharperSettingsFileName, DirectoryPath restorePackagesDirectory, DirectoryPath rootDirectoryPath, Boolean shouldAuthenticodeSignMsis, Boolean shouldAuthenticodeSignOutputAssemblies, Boolean shouldAuthenticodeSignPowerShellScripts, Boolean shouldBuildMsi, Boolean shouldBuildNuGetSourcePackage, Boolean shouldDownloadFullReleaseNotes, Boolean shouldDownloadMilestoneReleaseNotes, Boolean shouldGenerateSolutionVersionCSharpFile, Boolean shouldObfuscateOutputAssemblies, Boolean shouldPublishPreReleasePackages, Boolean shouldPublishReleasePackages, Boolean shouldReportCodeCoverageMetrics, Boolean shouldReportUnitTestResults, Boolean shouldRunChocolatey, Boolean shouldRunDotNetPack, Boolean shouldRunDotNetTest, Boolean shouldRunGitReleaseManager, Boolean shouldRunGitVersion, Boolean shouldRunILMerge, Boolean shouldRunInspectCode, Boolean shouldRunNuGet, Boolean shouldRunNUnit, Boolean shouldRunOpenCover, Boolean shouldRunReportGenerator, Boolean shouldRunReportUnit, Nullable`1 shouldRunTransifex, Boolean shouldRunxUnit, Boolean shouldStrongNameOutputAssemblies, Boolean shouldStrongNameSignDependentAssemblies, DirectoryPath solutionDirectoryPath, FilePath solutionFilePath, String strongNameDependentAssembliesInputPath, String testAssemblyFilePattern, String testAssemblyProjectPattern, DirectoryPath testDirectoryPath, TransifexMode transifexPullMode, Int32 transifexPullPercentage, Boolean treatWarningsAsErrors, Boolean useChocolateyGuiStrongNameKey) i E:\repos\orgs\chocolatey\choco\choco\tools\Chocolatey.Cake.Recipe.0.16.0\Content\parameters.cake:linje 429 ved Submission#0.<>d__0.MoveNext() i E:\repos\orgs\chocolatey\choco\choco\recipe.cake:linje 155 --- Slutt på stakksporing fra forrige plassering der unntak ble iverksatt --- ved System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() ved System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) ved Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.d__9`1.MoveNext() --- Slutt på stakksporing fra forrige plassering der unntak ble iverksatt --- ved System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() ved System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) ved Microsoft.CodeAnalysis.Scripting.Script`1.d__21.MoveNext() --- Slutten på sporingen av intern unntaksstakk --- ved System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) ved System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) ved Cake.Scripting.Roslyn.RoslynScriptSession.Execute(Script script) ved Cake.Core.Scripting.ScriptRunner.Run(IScriptHost host, FilePath scriptPath, IDictionary`2 arguments) ved Cake.Commands.BuildCommand.Execute(CakeOptions options) ved Cake.CakeApplication.Run(CakeOptions options) ved Cake.Program.Main() ---> (indre unntak nummer 0) System.NullReferenceException: Objektreferanse er ikke satt til en objektforekomst. ved Submission#0.BuildParameters.SetParameters(ICakeContext context, BuildSystem buildSystem, DirectoryPath sourceDirectoryPath, String title, String certificateSubjectName, String developBranchName, FilePath fullReleaseNotesFilePath, Func`1 getFilesToObfuscate, Func`1 getFilesToSign, Func`1 getILMergeConfigs, Func`1 getMsisToSign, Func`1 getProjectsToPack, Func`1 getScriptsToSign, String integrationTestScriptPath, String masterBranchName, FilePath milestoneReleaseNotesFilePath, ICollection`1 nuGetSources, Boolean obfuscateAssembly, List`1 packageSourceDatas, Boolean preferDotNetGlobalToolUsage, String preReleaseLabelFilePath, Boolean productClsCompliant, String productCompany, Boolean productComVisible, String productCopyright, ICollection`1 productCustomAttributes, String productDescription, String productName, String productTrademark, String repositoryName, String repositoryOwner, String resharperSettingsFileName, DirectoryPath restorePackagesDirectory, DirectoryPath rootDirectoryPath, Boolean shouldAuthenticodeSignMsis, Boolean shouldAuthenticodeSignOutputAssemblies, Boolean shouldAuthenticodeSignPowerShellScripts, Boolean shouldBuildMsi, Boolean shouldBuildNuGetSourcePackage, Boolean shouldDownloadFullReleaseNotes, Boolean shouldDownloadMilestoneReleaseNotes, Boolean shouldGenerateSolutionVersionCSharpFile, Boolean shouldObfuscateOutputAssemblies, Boolean shouldPublishPreReleasePackages, Boolean shouldPublishReleasePackages, Boolean shouldReportCodeCoverageMetrics, Boolean shouldReportUnitTestResults, Boolean shouldRunChocolatey, Boolean shouldRunDotNetPack, Boolean shouldRunDotNetTest, Boolean shouldRunGitReleaseManager, Boolean shouldRunGitVersion, Boolean shouldRunILMerge, Boolean shouldRunInspectCode, Boolean shouldRunNuGet, Boolean shouldRunNUnit, Boolean shouldRunOpenCover, Boolean shouldRunReportGenerator, Boolean shouldRunReportUnit, Nullable`1 shouldRunTransifex, Boolean shouldRunxUnit, Boolean shouldStrongNameOutputAssemblies, Boolean shouldStrongNameSignDependentAssemblies, DirectoryPath solutionDirectoryPath, FilePath solutionFilePath, String strongNameDependentAssembliesInputPath, String testAssemblyFilePattern, String testAssemblyProjectPattern, DirectoryPath testDirectoryPath, TransifexMode transifexPullMode, Int32 transifexPullPercentage, Boolean treatWarningsAsErrors, Boolean useChocolateyGuiStrongNameKey) i E:\repos\orgs\chocolatey\choco\choco\tools\Chocolatey.Cake.Recipe.0.16.0\Content\parameters.cake:linje 429 ved Submission#0.<>d__0.MoveNext() i E:\repos\orgs\chocolatey\choco\choco\recipe.cake:linje 155 --- Slutt på stakksporing fra forrige plassering der unntak ble iverksatt --- ved System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() ved System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) ved Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.d__9`1.MoveNext() --- Slutt på stakksporing fra forrige plassering der unntak ble iverksatt --- ved System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() ved System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) ved Microsoft.CodeAnalysis.Scripting.Script`1.d__21.MoveNext()<--- ~~~

choco-bot commented 2 years ago

:tada: This issue has been resolved in version 0.18.0 :tada:

The release is available on:

Your GitReleaseManager bot :package::rocket: