-
Notifications
You must be signed in to change notification settings - Fork 180
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
Issues updating packages that use 'latest' versioning #1971
Comments
This should be fixed in the latest version of salt |
We still see this on 3006.6:
When using 'version=latest' in the command it updates:
|
Sorry--I misread things. I've gone round and round with the Now I just manually update my sls file every few days to specifically list the version numbers:
In my opinion it's stupid to have an unversioned installer, and it's even worse to use the Explicitly declaring a version number in the file allows the package manager to know that it's out of date. One way of keeping it up to date automatically might be something like this:
You can never downgrade because the MSI will automatically install the latest version, but at least version numbers are listed to Salt knows when the installed version is out of date. |
I should also add that not even Google appears to know the latest version from time to time. https://versionhistory.googleapis.com/v1/chrome/platforms/win/channels/stable/versions currently lists |
Thanks for the explanations and examples. For our use case it is a small number of Windows machines to deal with, so running the command with 'version=latest' certainly isn't the end of the world, it just struck me as odd needing to do it, but based on your explanation - I get it. If we had stricter versioning requirements or a larger fleet to manage we'd probably roll our own state definitions similar to what you're doing. When initially reading the documentation and seeing the behavior, it seemed incorrect, but not something I personally find inconvenient. More than once I've reported behavior I didn't understand and either found a bug or got to learn something new about Salt behavior based on responses - of the few communities I deal with here I've learned the most from Saltstack developers and users. :) |
When attempting to install the latest version of Chrome, for example, the installer is not being executed and the existing version remains. Perhaps I am misinterpreting expected behavior, and assume for packages that use the 'latest' versioning scheme, the installer will be executed each time.
With 3005.1 this does not seem to be the case:
Current version of Chrome installed
Latest version available at the time of this writing is 107.0.5304.107.
Attempting to install the package results in no output and the installer is not ran:
DEBUG output from the minion:
The text was updated successfully, but these errors were encountered: