-
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
chocolateyBeforeModify.ps1 does not get called for dependent packages #1092
Comments
That's interesting and definitely not desired. I find it odd that it doesn't handle that situation accurately. |
As the issue template requested, can you provide a gist of the debug / verbose output? You should have this from what you ran already. It will be in C:\ProgramData\chocolatey\logs\chocolatey.log. Once we have that, it will provide some better terms for evaluation. |
Ok, i'll post it on monday. |
Thank you. 👍 |
I've attached chocolatey.log file: https://github.com/chocolatey/choco/files/660065/chocolatey.log.txt Command issued in console was: choco upgrade itsk.af.local -y Package dependency tree looks like this: Each package has tools\chocolateyBeforeModify.ps1 with the same content: But tools\chocolateyBeforeModify.ps1 gets called only for itsk.af.local |
This still appears to be a broken, please fix. |
I think we know why this is occurring - we'll prolly need to do some additional checks closer to when those dependent packages are discovered for upgrade. |
We have the same problem as well. We're using a meta-package which depends on multiple packages. |
Users of keepass package (including me) are repeatedly facing this issue (just see the comments). Would it be possible to fix this, please? |
…and Install scripts, as workaround for chocolatey/choco#1092
…and Install scripts, as workaround for chocolatey/choco#1092
This addition is necessary, as many occasions may arise where installing one package involves updating an already-installed dependency. In these cases we should still be running a beforeModify script if it's present, and this facilitates that.
This addition is necessary, as many occasions may arise where installing one package involves updating an already-installed dependency. In these cases we should still be running a beforeModify script if it's present, and this facilitates that.
This test added ensures that when we are upgrading a package, both its own and any dependencies' beforeModify are run so that we can properly update dependencies which might need to shut down a long-running service before being upgraded.
This test added ensures that when we are upgrading a package, both its own and any dependencies' beforeModify are run so that we can properly update dependencies which might need to shut down a long-running service before being upgraded.
This test added ensures that when we are upgrading a package, both its own and any dependencies' beforeModify are run so that we can properly update dependencies which might need to shut down a long-running service before being upgraded.
This test added ensures that when we are upgrading a package, both its own and any dependencies' beforeModify are run so that we can properly update dependencies which might need to shut down a long-running service before being upgraded.
(#1092) Ensure chocolateyBeforeModify.ps1 is run for dependencies
🎉 This issue has been resolved in version 1.3.1 🎉 The release is available on: Your GitReleaseManager bot 📦🚀 |
This addition is necessary, as many occasions may arise where installing one package involves updating an already-installed dependency. In these cases we should still be running a beforeModify script if it's present, and this facilitates that. (cherry picked from commit 3a30cbc) # Conflicts: # src/chocolatey.tests/infrastructure.app/services/ChocolateyPackageServiceSpecs.cs
This test added ensures that when we are upgrading a package, both its own and any dependencies' beforeModify are run so that we can properly update dependencies which might need to shut down a long-running service before being upgraded. (cherry picked from commit 49cc8d7) # Conflicts: # src/chocolatey.tests.integration/chocolatey.tests.integration.csproj # src/chocolatey.tests.integration/scenarios/InstallScenarios.cs # src/chocolatey.tests.integration/scenarios/UninstallScenarios.cs # src/chocolatey.tests.integration/scenarios/UpgradeScenarios.cs
Changes originally in 9f5d9cc, adapted for the current develop branch and the changes therein.
Changes originally in 9f5d9cc, adapted for the current develop branch and the changes therein. Additionally, replaced and obsoleted some overloads of public (why?) methods that have unused method arguments and made them protected.
This addition is necessary, as many occasions may arise where installing one package involves updating an already-installed dependency. In these cases we should still be running a beforeModify script if it's present, and this facilitates that. (cherry picked from commit 3a30cbc) # Conflicts: # src/chocolatey.tests/infrastructure.app/services/ChocolateyPackageServiceSpecs.cs
This test added ensures that when we are upgrading a package, both its own and any dependencies' beforeModify are run so that we can properly update dependencies which might need to shut down a long-running service before being upgraded. (cherry picked from commit 49cc8d7) # Conflicts: # src/chocolatey.tests.integration/chocolatey.tests.integration.csproj # src/chocolatey.tests.integration/scenarios/InstallScenarios.cs # src/chocolatey.tests.integration/scenarios/UninstallScenarios.cs # src/chocolatey.tests.integration/scenarios/UpgradeScenarios.cs
Changes originally in 9f5d9cc, adapted for the current develop branch and the changes therein. Additionally, replaced and obsoleted some overloads of public (why?) methods that have unused method arguments and made them protected.
This addition is necessary, as many occasions may arise where installing one package involves updating an already-installed dependency. In these cases we should still be running a beforeModify script if it's present, and this facilitates that. (cherry picked from commit 3a30cbc)
This test added ensures that when we are upgrading a package, both its own and any dependencies' beforeModify are run so that we can properly update dependencies which might need to shut down a long-running service before being upgraded. (cherry picked from commit 49cc8d7) # Conflicts: # src/chocolatey.tests.integration/chocolatey.tests.integration.csproj # src/chocolatey.tests.integration/scenarios/InstallScenarios.cs # src/chocolatey.tests.integration/scenarios/UninstallScenarios.cs # src/chocolatey.tests.integration/scenarios/UpgradeScenarios.cs
Changes originally in 9f5d9cc, adapted for the current develop branch and the changes therein. Additionally, replaced and obsoleted some overloads of public (why?) methods that have unused method arguments and made them protected.
(#1092) Incorporate beforemodify changes into develop branch
chocolatey log: chocolatey.log.txt
The text was updated successfully, but these errors were encountered: