Skip to content
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

Package creation step reports success even when it fails #36

Open
idg10 opened this issue Aug 19, 2020 · 0 comments
Open

Package creation step reports success even when it fails #36

idg10 opened this issue Aug 19, 2020 · 0 comments

Comments

@idg10
Copy link
Contributor

idg10 commented Aug 19, 2020

Becaused of endjin/Endjin.RecommendedPractices.NuGet#20 we are currently producing files named .xml. These in turn cause failures during package creation, e.g.:

/opt/hostedtoolcache/dotnet/sdk/3.1.401/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(198,5): error NU5119: File '/home/vsts/work/1/s/Solutions/Corvus.Azure.Cosmos.Tenancy/bin/Release/netstandard2.0/.xml' was not added to the package. Files and folders starting with '.' or ending with '.nupkg' are excluded by default. To include this file, use -NoDefaultExcludes from the commandline [/home/vsts/work/1/s/Solutions/Corvus.Azure.Cosmos.Tenancy/Corvus.Azure.Cosmos.Tenancy.csproj]

You can see an example of this failure here:

https://dev.azure.com/endjin-labs/Corvus.Tenancy/_build/results?buildId=6365&view=logs&j=ca395085-040a-526b-2ce8-bdc85f692774&t=bde858e3-1ff6-5d7a-f958-9ce4fc5e6086&l=1356

But notice that the build step containing this failure appears to have succeeded. Indeed, the whole build looks to have succeeded
https://dev.azure.com/endjin-labs/Corvus.Tenancy/_build/results?buildId=6365&view=results

even though it has failed to build NuGet packages correctly, an important part of the build.

Errors during this step should be reflected in the build status.

@idg10 idg10 added the bug label Aug 19, 2020
@endjin-safesettings endjin-safesettings bot removed the bug label May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant