dotnet / reproducible-builds

Contains the DotNet.ReproducibleBuilds package
MIT License
168 stars 18 forks source link

Pack error NU5017 #28

Closed WeihanLi closed 6 hours ago

WeihanLi commented 1 year ago

When I use the DotNet.ReproducibleBuilds package(1.1.1), the pack step failed with error NU5017, when updated reference to Microsoft.SourceLink.GitHub, it works

error NU5017: Cannot create a package that has no dependencies nor content

image

Failed CI sample:

https://github.com/WeihanLi/dotnet-exec/actions/runs/3489789242/jobs/5848009450

Success CI sample:

https://github.com/WeihanLi/dotnet-exec/actions/runs/3494529164/jobs/5850378023

code changes:

https://github.com/WeihanLi/dotnet-exec/commit/71d50edeb2de93cced08325567a20bd63196357d

aetos382 commented 1 year ago

I think this issue should be handled by the NuGet team. Is this related to NuGet/Home#8583?

Miguel-AgRz commented 1 month ago

I can confirm it, after removing

snupkg

I will not show the error anymore, i guess it is a bug

MattKotsenas commented 6 hours ago

Hi @WeihanLi! We've released a new version of the package which includes an updated version of Microsoft.SourceLink.GitHub. Since you mentioned that as a workaround for your issue, I'm resolving this issue. If you still experience problems after upgrading to the latest version, please open an issue and provide updated details such as a minimal repo / codebase that reproduces the issue.

Thanks!