I've pinned powershell-core because you mess up if you upgrade PowerShell Core in PowerShell Core.
So when I have to upgrade PowerShell Core, I have to remove pin and upgrade and add pin again.
Specifically, I follow this procedure:
choco upgrade all in PowerShell Corethis package is pinned warning message)choco pin remove -n=powershell-core in Powershellchoco upgrade powershell-core in Powershellchoco pin add -n=powershell-core in PowershellThe point is someone uses pin for delay upgrades, not to block upgrades forever.
Add a switch --disable-pin to upgrade.
When this switch is enabled, pinned packages will be upgraded.
choco upgrade powershell-core --disable-pin has same effect with the above procedure 4-6.
Switch name could be
--ignore-pin--exclude-pin--disable-pin-onceI think this may already be an issue? Or at least something related like install with pin.
Hear, Hear!
I could not agree more.
I asked this exact question on StackExchange Super User.
At the least, it would be nice if the documentation for pinning explicitly stated that there is no way to temporarily bypass the pin. One can only manually remove the pin, upgrade and repin.
Notwithstanding my asking for more, Chocolatey is really good. Thank you.
Most helpful comment
Hear, Hear!
I could not agree more.
I asked this exact question on StackExchange Super User.
At the least, it would be nice if the documentation for pinning explicitly stated that there is no way to temporarily bypass the pin. One can only manually remove the pin, upgrade and repin.
Notwithstanding my asking for more, Chocolatey is really good. Thank you.