-
Notifications
You must be signed in to change notification settings - Fork 905
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
(#89) Remove cpack shim for choco pack #2551
Conversation
Should there be an upgrade path that removed the |
@corbob I am not sure if I follow what you mean here. Can you elaborate? |
So if I take the nupkg to a fresh system and install it, |
What if a user replaced the Or what if a user manually created a Although removing the shim still might be the best course of action, there are lots of edge cases. |
Agreed. There is a long standing "rule" that Chocolatey package installations shouldn't directly we adding anything into the Chocolatey bin folder, and the same rule should apply to folks directly adding files in there. Obviously we can't stop someone doing this if they really want to, but they can't expect that Chocolatey (in future versions) won't do something that results in something that they have done manually stops working. We have discussed this within the team, and the plan going forward would be to check whether the |
Converting to to draft until an addition to the chocolateyInstall.ps1 file is made to affect the removal of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
As I added the changes in the PowerShell file I'll need a second pair of eyes to ensure it both works as expected and looks fine.
da5f4a4
to
a91cf3f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just the one comment from my perspective.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small change...
There are known incompatibilities with this shim when other applications are installed on the machine, for example cmake. Since we are moving towards usage of a ubiquitous choco command, removing this shim makes a lot of sense.
2a9526f
to
1816879
Compare
This commit updates the installation/upgrading of the package to remove the cpack shim if they are signed with the an authenticode signature with the subject set to one of our previously used authenticode signatures. The code added makes it easy to extend it when needed for removal of other shims as well.
@AdmiringWorm thanks for getting this over the line! |
@gep13 it was a pretty big line, but finally got there eventually 😆 |
There are known incompatibilities with this shim when other applications
are installed on the machine, for example cmake. Since we are moving
towards usage of a ubiquitous choco command, removing this shim makes
a lot of sense.
Fixes #89