azure-functions-core-tools icon indicating copy to clipboard operation
azure-functions-core-tools copied to clipboard

If restore fails, CI script should exit with an error

Open mattchenderson opened this issue 6 months ago • 0 comments

Version

N/A

Description

In check-vulnerabilities.ps1, we should probably capture the exit code from the dotnet restore command and possibly throw an error before we get to the package listing operation. If restore fails partially, the package listing can git tripped on versions in dependencies not getting snapped forward properly.

Steps to reproduce

This was encountered with early iterations of https://github.com/Azure/azure-functions-core-tools/pull/3780, as the package was not on the feed.

mattchenderson avatar Aug 07 '24 22:08 mattchenderson