Rob Reynolds
Rob Reynolds
`choco upgrade --version --force` That should do it.
@felipecrs Force is not recommended as a first step in any kind of situation (and should never be in scripts without a fantastic reason). Force says "I know what I'm...
@felipecrs sorry, was writing up the rest for you here. 👍
I dropped a comment in your PR, looks like you are handling that use case already!
We have documented behaviors of what runs before modify, and would need to consider the ramifications of adding additional use cases. I'll drop triaging on this and reopen it.
I think maybe we should take a step back and come to a common understanding of the before modify, its behaviors, and our vision of why it was introduced and...
@felipecrs let me know if `choco new test` doesn't provide the right information inside the generated chocolateyBeforeModify.ps1. I see how you were introduced reading that and see that was suboptimal.
I thought we added notes about how it was not needed in 98% of use cases. We'll definitely look to document that better.
Perhaps you could clarify what you mean?
It does this already in some ways, unless the file has been changed in some way