Add wingetsource new-version #7
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#1 Build the submit action
jeff/winget-submit
Reference
jeff/winget-pkgs#7
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #4
Add a
new-versionsubcommand towingetsourcethat writes a new version of a package that already has one, by copying its newest version and replacing what changes with the release. ADR 0004 (PR #6) records why it lives here rather than injeff/winget-submit.Command line
The options may later be added to but never changed or removed: every pinned copy of
jeff/winget-submitruns whatevernew-versionis onmain.Behavior
version.py), not by directory name, git date or string order.PackageVersionreplaced; everything else copied.PackageVersionandReleaseDatereplaced, and each installer'sInstallerUrlandInstallerSha256replaced, matched byArchitecture. The SHA-256 is computed by downloading each installer, upper-case hex as in the existing manifests.ReleaseDateis--release-date, defaulting to today in UTC.PackageVersionreplaced andReleaseNotesUrlset to--release-notes-url, or removed when the option is not given. Nothing else is rewritten — the URLs in it are copied as they are.yaml-language-serverschema line.--installerarchitectures differs from the newest version's.checkre-downloads the installers when it runs; that is deliberate, so that the check stays independent of the writer.Also
tests/, with installer downloads faked the waycheck_installerstakesdownload=. Cover version ordering (0.10.0above0.9.0), the architecture mismatch, the missing package, the existing directory, andReleaseNotesUrlpresent and absent.Done when
new-versionfollowed bycheck --changed-since origin/mainpasses on a version it wrote, the tests pass in CI, and the documentation describes it.