-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
using latest version instead of version number #295
Comments
Related discussion: https://github.com/microsoft/winget-pkgs/issues/278 |
The challenge here is the SHA256 hash of the installer. The "latest" manifest would become invalid as soon as the newer "version" showed up with a different hash. We also run static analysis on any binary before it is included in the repository. May users are intentional about wanting specific versions of software. |
How about including a list of versions inside the manifest? This would sovle the problem of wrong version numbers if there's only a dynamic download URL where a specific version can't be selected. It would also enable functionality like The static versions could be kept up-to-date, but this solution would prevent packages from becoming outdated simply because the latest version hasn't been pushed to the repo yet, which sometimes is the case with (linux) package managers. |
@Chaphasilor we're looking at a few options, but we're likely to avoid trying to list every version of a package in a single manifest. Any time any of them changed, or became unavailable, we'd have to modify the manifest. We do list the versions for all current manifests: 'winget show vscode --versions' |
We are running a background process to check and see if the "Sha256" for an installer is still valid for the manifests. There is still work to automatically generate new manifests when files change. One of the primary use cases for package managers is to be able to install a specific version of a package. If we only have access to a "latest" version of a package from the source, this creates challenges. We're considering additional meta-data in the manifest to identify these kinds of packages. |
VLC is interesting in that the SHA is located next to the download for latest. I don't know if this is a common pattern, but would a SHA at the same directory of the download be an avenue to consider? |
We've introduced automation to generate a valid manifest with the correct hash with the installer has changed at the URL provided by a manifest. |
hi, Some programs provide a download link for each version number
To create a manifest, we need to specify the version number
But some programs have a fixed link and the latest version is always available through it
Therefore, I suggest that Make it possible for us to replace the version number With the latest word
Something like this:
winget-pkgs\manifests\Daum\PotPlayer\Latest.yaml
The text was updated successfully, but these errors were encountered: