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

dotnet list package --outdated exit code #25091

Closed
cosminstirbu opened this issue Apr 27, 2022 · 2 comments
Closed

dotnet list package --outdated exit code #25091

cosminstirbu opened this issue Apr 27, 2022 · 2 comments
Labels
Area-NuGet untriaged Request triage from a team member

Comments

@cosminstirbu
Copy link

cosminstirbu commented Apr 27, 2022

Hello,

We'd like to check for outdated packages as part of our PR pipeline.
We would like to use dotnet list package --outdated, however there is no way to tell (without parsing the output), if there are any outdated packages.

Would it be possible to opt into returning a non-zero exit code if there are outdated packages, so we can then fail our pipeline / report on it?

We're currently using https://github.com/dotnet-outdated/dotnet-outdated, however sometimes it is a hit or miss, because it fails to load the .sln.

Thank you,
Cosmin

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-NuGet untriaged Request triage from a team member labels Apr 27, 2022
@KalleOlaviNiemitalo
Copy link

This is somewhat related to NuGet/Home#8087 (exit code for vulnerable packages) and NuGet/Home#7752 (machine-readable dotnet list package so you'd at least be able to parse it more easily).

@ghost
Copy link

ghost commented Apr 27, 2022

Thanks for creating this issue! We believe this issue is related to NuGet tooling, which is maintained by the NuGet team. Thus, we closed this one and encourage you to raise this issue in the NuGet repository instead. Don’t forget to check out NuGet’s contributing guide before submitting an issue!

If you believe this issue was closed out of error, please comment to let us know.

Happy Coding!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-NuGet untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

2 participants