Replies: 1 comment
-
This is something that should is considered a bug in Chocolatey CLI itself. However, as we currently do not have any ETA on when the upstream issue will be looked at, I'll approve and create a issue based on this discussion. Just to note though, when adding the necessary code make sure that you add a comment in the install script of why it is needed to call the helper to stop the process. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I originally raised this issue in the form of a comment in #1451, but spinning off into a discussion per @TheCakeIsNaOH's request.
TL;DR: the
git.install
package has had a recurring issue with Git for Windows installations that have enabled signing commits with a GPG key. This spawns a background process (gpg-agent.exe
) that must be manually closed by the user in order to upgrade the software. The package contains achocolateyBeforeModify.ps1
script to handle stopping this process, but this script only runs whengit.install
is upgraded directly. If indirectly upgraded via the metapackage (i.egit
), the script does not run, and consequently the package fails to upgrade.As a fix for the upstream issue does not appear to be planned for release soon, I'd like to propose we extract the
gpg-agent
termination code fromchocolateyBeforeModify.ps1
, encapsulate it within a function defined inhelpers.ps1
, and call the function from bothchocolateyBeforeModify.ps1
(to handle direct upgrades/uninstalls) andchocolateyInstall.ps1
(as a workaround for indirect upgrades) to facilitate a smoother upgrade experience.Thoughts?
EDIT: I'm also willing to own pull request creation if approved.
Beta Was this translation helpful? Give feedback.
All reactions