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

Drop strfmt.Base64 from pkg/oci. #1083

Merged
merged 2 commits into from
Nov 19, 2021
Merged

Conversation

mattmoor
Copy link
Member

I noticed that vendoring pkg/oci was pulling in stuff from mongodb, and pulling the thread it seems to come from this line.

Base64 is an alias of []byte, and changing it seems to break nothing, so great!

Signed-off-by: Matt Moore mattmoor@chainguard.dev

Ticket Link

Release Note

The SignedEntryTimestamp is now typed []byte, to get the previous behavior call strfmt.Base64(SignedEntryTimestamp)

I noticed that vendoring `pkg/oci` was pulling in stuff from `mongodb`, and pulling the thread it seems to come from this line.

`Base64` is an alias of `[]byte`, so this should have a relatively low migration cost.

Signed-off-by: Matt Moore <mattmoor@chainguard.dev>
@mattmoor
Copy link
Member Author

Ok I lied, I was expecting build failures, so I passed -run=^$ but there is one "" -> null needed for this to not break.

Signed-off-by: Matt Moore <mattmoor@chainguard.dev>
@mattmoor
Copy link
Member Author

LOL we also had a place where we were casting to []byte()! 🤣

@dlorenc dlorenc merged commit e1acd18 into sigstore:main Nov 19, 2021
@mattmoor mattmoor deleted the drop-strfmt branch November 19, 2021 20:02
@github-actions github-actions bot added this to the v1.4.0 milestone Nov 19, 2021
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.

3 participants