Skip to content
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

fix: Make wash push returned digest based on the pushed manifest #2104

Merged
merged 1 commit into from
May 10, 2024

Conversation

joonas
Copy link
Contributor

@joonas joonas commented May 9, 2024

Feature or Problem

This addresses a couple of problems:

  1. wash push was returning the manifest from the manifest-attached config, not the manifest itself.
  2. wash push was passing in an empty hashmap for annotations even if there were none, which resulted in an empty "annotations": {} being stored on the registry, when it really should've just been omitted altogether

In addition, it adds logic to calculate the manifest digest locally based on an alphabetically sorted set of bytes to match the behavior of the most commonly available/widely deployed registry, distribution.

Related Issues

Release Information

Consumer Impact

Testing

Unit Test(s)

Acceptance or Integration

Manual Verification

@joonas joonas requested review from a team as code owners May 9, 2024 23:56
Copy link
Contributor

@thomastaylor312 thomastaylor312 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go pending passing tests

@joonas joonas force-pushed the fix/wash-push-digest branch 2 times, most recently from ff9a0b3 to 1f92b6a Compare May 10, 2024 04:26
Signed-off-by: Joonas Bergius <joonas@cosmonic.com>
@thomastaylor312 thomastaylor312 merged commit 1b4faab into wasmCloud:main May 10, 2024
76 checks passed
@joonas joonas deleted the fix/wash-push-digest branch May 10, 2024 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants