Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Allow updates to existing winget manifests #179

Merged
merged 1 commit into from
Sep 17, 2021

Conversation

ldennington
Copy link
Collaborator

@ldennington ldennington commented Sep 17, 2021

We recently received notification from a customer that installing
microsoft/git via winget was broken due to a signing issue. This happened
because we accidentally deployed an incorrect SHA for the microsoft/git
version 2.33.0.0.0 manifest on microsoft/winget-pkgs then replaced
the asset on GitHub with a new version with a new SHA.

When we tried to re-run the update-winget workflow
to correct the SHA, we discovered some issues with the action that make it
impossible to update existing manifests. This PR updates the action to allow
us to both create new winget manifests and update existing ones.

Here is an example of a test PR opened to update an existing manifest with these changes.

And here is an example of a test PR that creates a new manifest with these changes.

We recently received notification from a customer that installing
`microsoft/git` via winget was broken due to a signing issue. This happened
because we accidentally deployed an incorrect SHA for the `microsoft/git`
version `2.33.0.0.0` manifest on `microsoft/winget-pkgs` then replaced
the asset on GitHub with a new version with a new SHA.

When we tried to re-run the `update-winget` workflow
to correct the SHA, we discovered some issues with the action that make it
impossible to update existing manifests. This PR updates the action to allow
us to both create new winget manifests and update existing ones.

[Here](https://github.com/ldennington/winget-playground/pull/47) is an
example of a test PR opened to update an existing manifest with these
changes. And
[here](https://github.com/ldennington/winget-playground/pull/48) is an
example of a test PR that creates a new manifest with these changes.
@ldennington
Copy link
Collaborator Author

I'm seeing some weirdness where compiling with npm run all is including formatting changes to main.ts. I am not sure whether including them matters, but I'm leaving them in this PR for now to be safe. @mjcheetham if you think I should remove, I'm more than happy to do so though.

@mjcheetham mjcheetham merged commit 6458003 into mjcheetham:main Sep 17, 2021
ldennington added a commit to ldennington/git that referenced this pull request Sep 17, 2021
This version allows us to update existing `winget` manifests by
specifying a manifest's SHA if it already exists in `microsoft/winget-pkgs`.

Pull Requests
---------------

* [microsoft#178](mjcheetham/update-winget#179): Allow
updates to existing winget manifests
ldennington added a commit to git-ecosystem/git-credential-manager that referenced this pull request Sep 17, 2021
This version allows us to update existing `winget` manifests by
specifying a manifest's SHA if it already exists in `microsoft/winget-pkgs`.

Pull Requests
---------------

* [#178](mjcheetham/update-winget#179): Allow updatesto existing winget manifests
ldennington added a commit to ldennington/VFSForGit that referenced this pull request Sep 17, 2021
This version allows us to update existing `winget` manifests by
specifying a manifest's SHA if it already exists in `microsoft/winget-pkgs`.

Pull Requests
---------------

* [microsoft#178](mjcheetham/update-winget#179): Allow
updates to existing winget manifests
ldennington added a commit to ldennington/VFSForGit that referenced this pull request Sep 17, 2021
This version allows us to update existing `winget` manifests by
specifying a manifest's SHA if it already exists in `microsoft/winget-pkgs`.

Pull Requests
---------------

* [microsoft#178](mjcheetham/update-winget#179): Allow
updates to existing winget manifests
ldennington added a commit to ldennington/VFSForGit that referenced this pull request Sep 20, 2021
This version allows us to update existing `winget` manifests by
specifying a manifest's SHA if it already exists in `microsoft/winget-pkgs`.

Pull Requests
---------------

* [microsoft#178](mjcheetham/update-winget#179): Allow
updates to existing winget manifests
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.

None yet

2 participants