-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assets on a draft release can be null #454
Comments
I'm also seeing this when trying to pass in an asset while creating a draft release. Adding the same asset to an existing draft release works.
|
How to reproduce itI can reproduce the issue when I execute the command below
What is happening?The problem is that when I'm getting the release, I'm trying to find a released tagged
Later, I'm trying to query the assets on a
Why is it happening?When creating a release with assets, it first creates the release, and then it uploads the assets. To upload the assets, we need the release, therefore we retrieve the created release. It seems that when we try to retrieve the freshly created release, it's not yet available and this is the root cause of the How to fix it?Instead of retrieving the release from the wire, we can provide the created release to the method that is in charge of uploading the assets |
Huge thanks to @jibedoubleve who was able to figure out the solution to this problem, and provide a PR to get it working. The issue will be addressed in the 0.14.0 release of GitReleaseManager. |
* release/0.14.0: (28 commits) (maint) Consolidate and remove duplicates (maint) Update PackageReference (maint) Update PackageReference Bump Serilog.Sinks.Console from 4.0.1 to 4.1.0 in /src Bump Shouldly from 4.0.3 to 4.2.1 in /src Bump Microsoft.Extensions.DependencyInjection in /src Bump TextCopy from 6.1.0 to 6.2.1 in /src Bump Microsoft.CodeAnalysis.NetAnalyzers from 6.0.0 to 7.0.3 in /src Bump NSubstitute from 4.3.0 to 5.0.0 in /src Bump Microsoft.NET.Test.Sdk from 17.0.0 to 17.7.1 in /src Bump Scriban from 5.0.0 to 5.7.0 in /src Bump IDisposableAnalyzers from 4.0.1 to 4.0.6 in /src Bump NUnit from 3.13.2 to 3.13.3 in /src Bump CommandLineParser from 2.8.0 to 2.9.1 in /src Bump coverlet.msbuild from 3.1.1 to 6.0.0 in /src Bump Roslynator.Analyzers from 4.0.2 to 4.4.0 in /src Bump ApprovalTests from 5.7.1 to 5.8.0 in /src (#454) Create test (#454) Fix NullReferenceException on release not found (build) Force building of 0.14.0 ...
🎉 This issue has been resolved in version 0.14.0 🎉 The release is available on: Your GitReleaseManager bot 📦🚀 |
Hi
It seems that when creating a new release with assets, the draft release will have a null entry for its assets.
I'm getting a NullReferenceException on this line
GitReleaseManager/src/GitReleaseManager.Core/VcsService.cs
Line 147 in 9d82f41
The text was updated successfully, but these errors were encountered: