Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

fix: handle initial Winget submission when manifest doesn't exist#87

Merged
rianjs merged 1 commit intomainfrom
fix/winget-initial-submission
Jan 17, 2026
Merged

fix: handle initial Winget submission when manifest doesn't exist#87
rianjs merged 1 commit intomainfrom
fix/winget-initial-submission

Conversation

@rianjs
Copy link
Collaborator

@rianjs rianjs commented Jan 17, 2026

Problem

The Winget workflow failed because wingetcreate update requires an existing manifest in microsoft/winget-pkgs:

ERROR: repos/microsoft/winget-pkgs/contents/manifests/o/OpenCLICollective/cfl was not found.

For the initial submission, there's no existing manifest to update.

Solution

Both workflows now:

  1. Check if manifest exists in winget-pkgs via GitHub API
  2. If exists → use wingetcreate update (fast, just needs URLs)
  3. If not exists → use our template manifests from packaging/winget/, substitute version and real checksums, then use wingetcreate submit

Changes

  • .github/workflows/winget-publish.yml - Add manifest existence check and branching logic
  • .github/workflows/release.yml - Same changes to winget job

Follow-up to #77

wingetcreate update requires an existing manifest in microsoft/winget-pkgs.
For the initial submission, we need to use wingetcreate submit with our
template manifests instead.

Both workflows now:
1. Check if manifest exists in winget-pkgs
2. If exists: use wingetcreate update
3. If not: use our templates with real version/checksums and wingetcreate submit

Follow-up to #77
@rianjs rianjs merged commit c36be92 into main Jan 17, 2026
3 checks passed
@rianjs rianjs deleted the fix/winget-initial-submission branch January 17, 2026 12:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant