-
Notifications
You must be signed in to change notification settings - Fork 385
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
(git.install) gpg-agent.exe not killed before git package upgrade #1451
Comments
It could be argued thaat this is upstream problem. Native installer should do so. |
Can't say that I have seen this error myself, as the git installer kills the I assume we could implement some way to stop the process during upgrade/uninstalls though just to be safe. I will look into it as soon as I can do that, or if someone is interested feel free to open a PR for it instead. |
Maybe it can't kill it on specific machine due to rights. |
Maybe. But there should be no harm as far as I can see to add stopping the process in a |
The code necessary to resolve this has been added to the install package, and will be available for any future versions of the git/git.install package. |
@AdmiringWorm this looks not to have made it into the git 2.26.1 release from a few days ago? At any rate, a
I grabbed the first Maybe this wasn't expected to have made it into the 2.26.1 release but I thought I should note it here just in case it was. |
@medianick I guess I should have been a little clearer in my last comment. It did make it into the 2.26.1 release, however, as I had already mentioned it was added to the So in the end, the code was added, but won't be run until a version after the package version the code was added to have been installed. |
Got it, thank you for the clarification! |
The same error happened with the upgrade from 2.26.1 to 2.26.2; I had to taskkill |
@medianick the file should be located at During your upgrade, you should also have gotten at least one warning mentioning it will try to stop the |
@AdmiringWorm indeed the expected .ps1 file is in that location, so I'm not sure what the problem could be. I just signed a new commit (which launched the expected I can wait until the next git upgrade to try once more, and will capture the output then. |
Yeah, I meant to come back to this ticket and follow up; gpg-agent.exe is still not automatically stopped for me when I upgrade git via Chocolatey, so it's still exactly as I first described it. |
Just ran into this problem again with v2.36.1 and figured I'd dig into what's going on. From what I'm seeing, when the upgrade is driven via the metapackage (i.e. |
@brogers5 it looks like this may be caused by this issue: chocolatey/choco#1092 Can you open an enhancement discussion? Since this issue is already closed and is for the beforemodify script. |
@TheCakeIsNaOH Follow-up discussion opened here: |
Expected Behavior
When upgrading the
git
package, it installs successfully even if GPG commit signing had previously been in use.Current Behavior
If GPG commit signing had been in use (such that gpg-agent.exe is running at the time of the
choco upgrade
orcup
command), thegit
installer will be unable to upgrade it, and thegit
(andgit.install
) upgrade will fail.Possible Solution
taskkill /im gpg-agent.exe /f
prior to starting the git upgradeSteps to Reproduce (for bugs)
gpg-agent.exe
task)choco upgrade git
Context
Unless I've restarted Windows since the last time I signed a commit, the git upgrade via Chocolatey always fails.
Your Environment
The text was updated successfully, but these errors were encountered: