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

pkg/types: explicitly import all versions #1011

Merged
merged 1 commit into from
Aug 7, 2023

Conversation

squeed
Copy link
Member

@squeed squeed commented Jul 20, 2023

There was a bug in which some versions didn't register their creation function, thus leaving some types un-decodeable. Fix that by explicitly importing all known versions.

There was a bug in which some versions didn't register their creation
function, thus leaving some types un-decodeable. Fix that by explicitly
importing all known versions.

Signed-off-by: Casey Callendrello <[email protected]>
@squeed squeed requested a review from dcbw July 20, 2023 08:51
@coveralls
Copy link

Coverage Status

coverage: 72.685%. remained the same when pulling 4a096f6 on squeed:fix-version-registration into ca96f4c on containernetworking:main.

@squeed
Copy link
Member Author

squeed commented Jul 20, 2023

I'm not sure how tests didn't catch this. I suspect because we did other things to load these packages, and loading them was (sigh) side-effecting.

@dcbw
Copy link
Member

dcbw commented Aug 7, 2023

LGTM

@dcbw dcbw merged commit 44a6eef into containernetworking:main Aug 7, 2023
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.

4 participants