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

[WIP, DNM] try using oci.Platform where possible #42606

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thaJeztah
Copy link
Member

slightly related to #42464. Wondering if replacing these custom fields with the oci.Platform type would work

Comment on lines 41 to 45
Architecture string
Variant string `json:",omitempty"`
Os string
OsVersion string `json:",omitempty"`
Size int64
Copy link
Member Author

Choose a reason for hiding this comment

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

Need to think of this one, as this will have different output in JSON (Architecture => architecture, OsVersion -> os.version, Variant -> variant).

The "capitalised" vs "lowercase" changes should not be a problem when (un)marshalling, as Golang handles these case-insensitive, but OsVersion -> os.version will (likely) be an issue.

@thaJeztah thaJeztah force-pushed the use_oci_platform branch 7 times, most recently from 4410cf0 to 3c4498a Compare July 8, 2021 07:59
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

1 participant