"dotnet list package --deprecated" should report unlisted packages #12643
Labels
Functionality:ListPackage
dotnet.exe list package
Priority:3
Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog.
Product:dotnet.exe
Type:DCR
Design Change Request
NuGet Product(s) Affected
dotnet.exe
Current Behavior
dotnet list package --deprecated
only finds deprecated packages.Desired Behavior
dotnet list package --deprecated
should find deprecated and unlisted packages.Additional Context
Your guide Best practices for a secure software supply chain says the following:
But this guideline is not even followed by your own team as can be seen in the case #11883 (comment)
Also, as far as I know unlisting a package version has been possible for longer than deprecating has. So there might be many old packages out there which should not be used, but can't be found with the currently available commands.
Package consumers should have a way to figure out if they are using any unlisted packages.
An alternative would be a new
dotnet list package --unlisted
option. But in my opinion it is already annoying that--vulnerable
and--deprecated
can't be used at the same time, so I wouldn't want to execute a third command to find all "bad" packages.The text was updated successfully, but these errors were encountered: