Skip to content

[release/1.7] Remove uses of platforms.Platform alias#10277

Merged
dmcgowan merged 1 commit intocontainerd:release/1.7from
thaJeztah:1.7_backport_remove_use_of_platform_alias
May 29, 2024
Merged

[release/1.7] Remove uses of platforms.Platform alias#10277
dmcgowan merged 1 commit intocontainerd:release/1.7from
thaJeztah:1.7_backport_remove_use_of_platform_alias

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

Commit 3c8469a removed uses of the api types.Platform type from public interfaces, instead using the type from the OCI image spec.

For convenience, it also introduced an alias in the platforms package. While this alias allows packages that already import containerd's platforms package (now a separate module), it may also cause confusion (it's not clear that it's an alias for the OCI type), and for packages that do not depend on containerd's platforms package / module may now be resulting in an extra dependency.

Let's remove the use of this alias, and instead use the OCI type directly.

Equivalent of 446e635 (#10273) in main.

Commit 3c8469a removed uses of the api
types.Platform type from public interfaces, instead using the type from
the OCI image spec.

For convenience, it also introduced an alias in the platforms package.
While this alias allows packages that already import containerd's
platforms package (now a separate module), it may also cause confusion
(it's not clear that it's an alias for the OCI type), and for packages
that do not depend on containerd's platforms package / module may now
be resulting in an extra dependency.

Let's remove the use of this alias, and instead use the OCI type directly.

Equivalent of 446e635 in main.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@samuelkarp
Copy link
Copy Markdown
Member

/test pull-containerd-node-e2e-1-7-sandboxed

@dmcgowan dmcgowan merged commit 0a137f0 into containerd:release/1.7 May 29, 2024
@thaJeztah thaJeztah deleted the 1.7_backport_remove_use_of_platform_alias branch May 29, 2024 19:48
@dmcgowan dmcgowan changed the title [release/1.7] remove uses of platforms.Platform alias [release/1.7] Remove uses of platforms.Platform alias Jun 4, 2024
@dmcgowan dmcgowan changed the title [release/1.7] Remove uses of platforms.Platform alias [release/1.7] Remove uses of platforms.Platform alias Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants