chocolatey / chocolatey-licensed-issues

Issues for Licensed Editions of Chocolatey
19 stars 13 forks source link

Add the pin reason to output of the pin message if one is set when trying to upgrade a pinned package. #357

Open sync-by-unito[bot] opened 10 months ago

sync-by-unito[bot] commented 10 months ago

Description

Currently, when a user attempts to upgrade a pinned package, the output as it fails states the following.

<packagename> is pinned. Skipping pinned package.

If a reason for the package being pinned is set, I would like to see it appear after the output to let the user know why that package has been pinned without having to run choco pin list.

Why Is It Needed

This would be helpful for people to understand immediately why the package has been pinned, especially if one user pins a package and another user tries to upgrade it.

Related Issues and Tickets

N/A

Acceptance Tests

N/A

Done Checklist

N/A

┆Issue is synchronized with this Gitlab issue by Unito