Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/upgrade: Error when attempting to explicitly upgrade a pinned pkg
The idea here is that it should be expected that `brew upgrade` will not upgrade pinned packages but will attempt to upgrade everything else. For that reason, it will only show a warning about pinned packages in that case. If, on the other hand, you pass the name of a pinned package explicitly to the upgrade command, like in `brew upgrade PINNED`, we want to show an error since we cannot upgrade that package until it gets unpinned.
- Loading branch information