Skip to content

How do I prevent AU from changing the version number? #27

Answered by TheCakeIsNaOH
jharrilim asked this question in Q&A
Discussion options

You must be logged in to vote

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#L9

I 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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jharrilim
Comment options

Answer selected by jharrilim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants