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

Migrate SignCmd to several new helpers. #764

Merged
merged 1 commit into from
Sep 23, 2021

Conversation

mattmoor
Copy link
Member

This change eliminates a whole bunch of the ad hoc index walking logic in favor of mutate.Map, and a handful of new library calls that let us attach a new signature, and then publish those signature.

This detailed comment lays out the plan: #666 (comment), and this is very nearly what the code ended up being.

Signed-off-by: Matt Moore [email protected]

WIP until #763 lands. There is no way this is going to "just work" either, or I am going to throw some lego batman videos at y'all.

Ticket Link

Related: #666

Release Note

NONE

@mattmoor
Copy link
Member Author

Holy shit! First Try 😎

https://www.youtube.com/watch?v=3KDnrGdpNZY

This change eliminates a whole bunch of the ad hoc index walking logic in favor of `mutate.Map`, and a handful of new library calls that let us attach a new signature, and then publish those signature.

This detailed comment lays out the plan: sigstore#666 (comment), and this is very nearly what the code ended up being.

Related: sigstore#666
Signed-off-by: Matt Moore <[email protected]>
@mattmoor mattmoor changed the title [WIP] Migrate SignCmd to several new helpers. Migrate SignCmd to several new helpers. Sep 23, 2021
@mattmoor
Copy link
Member Author

I think I'll add a "read only" walk variant of things, which makes it a bit easier to hold the mutator.Map when you aren't looking to return the aggregated mutated thing (e.g. here we're just writing it out, and there isn't really a need)

@dekkagaijin dekkagaijin merged commit 54f2ef0 into sigstore:main Sep 23, 2021
@github-actions github-actions bot added this to the v1.3.0 milestone Sep 23, 2021
@mattmoor mattmoor deleted the map-sign branch September 23, 2021 17:51
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.

2 participants