How do I prevent AU from changing the version number? #27
-
Currently when I try to push an update using AU and Appveyor, AU sets the patch version to the entire date, and removes leading zeroes. I'm not too sure how to prevent this from happening. I'd like for it not to because I always have to comment on the package on chocolatey saying this version isn't for review. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
For AU, if force is enabled, then AU will update the package to use a fix version (aka adding the date to the end of the version), unless the desired package version is explicitly set. You are setting force always to be true when running I would suggest setting it to be false normally, and you can explicitly enable force for specific Appveyor runs with the |
Beta Was this translation helpful? Give feedback.
For AU, if force is enabled, then AU will update the package to use a fix version (aka adding the date to the end of the version), unless the desired package version is explicitly set.
You are setting force always to be true when running
update-all
: https://github.com/jharrilim/chocolatey-packages/blob/812116a96c11c2ca3efa3be76a00536775eec877/update_all.ps1#L9I would suggest setting it to be false normally, and you can explicitly enable force for specific Appveyor runs with the
[AU ......]
commit style as needed.