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

[DCR]: dotnet list package --outdated exit code #11781

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

[DCR]: dotnet list package --outdated exit code #11781

cosminstirbu opened this issue Apr 28, 2022 · 2 comments
Labels
Functionality:ListPackage dotnet.exe list package Product:dotnet.exe Resolution:Duplicate This issue appears to be a Duplicate of another issue Type:DCR Design Change Request

Comments

@cosminstirbu
Copy link

NuGet Product(s) Affected

dotnet.exe

Current Behavior

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?

Desired Behavior

Have an additional argument to dotnet list package --outdated to have it return a non-zero exit code if there are outdated packages (e.g., then number of outdated packages)

Additional Context

Original issue dotnet/sdk#25091

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

@cosminstirbu cosminstirbu added Triage:Untriaged Type:DCR Design Change Request labels Apr 28, 2022
@erdembayar
Copy link
Contributor

Related issues:

Have an additional argument to dotnet list package --outdated to have it return a non-zero exit code if there are outdated packages (e.g., then number of outdated packages)

I like the idea of additional argument so it wouldn't break existing users.

@nkolev92
Copy link
Member

nkolev92 commented May 5, 2022

Marking as duplicate of #11315.

@nkolev92 nkolev92 closed this as completed May 5, 2022
@nkolev92 nkolev92 added the Resolution:Duplicate This issue appears to be a Duplicate of another issue label May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Functionality:ListPackage dotnet.exe list package Product:dotnet.exe Resolution:Duplicate This issue appears to be a Duplicate of another issue Type:DCR Design Change Request
Projects
None yet
Development

No branches or pull requests

3 participants