You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by brogers5 June 21, 2022
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 a chocolateyBeforeModify.ps1 script to handle stopping this process, but this script only runs when git.install is upgraded directly. If indirectly upgraded via the metapackage (i.e git), 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 from chocolateyBeforeModify.ps1, encapsulate it within a function defined in helpers.ps1, and call the function from both chocolateyBeforeModify.ps1 (to handle direct upgrades/uninstalls) and chocolateyInstall.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.
The text was updated successfully, but these errors were encountered:
Discussed in #1924
Originally posted by brogers5 June 21, 2022
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.
The text was updated successfully, but these errors were encountered: