Skip to content

remove uses of platforms.Platform alias#10273

Merged
samuelkarp merged 1 commit intocontainerd:mainfrom
thaJeztah:remove_use_of_platform_alias
May 28, 2024
Merged

remove uses of platforms.Platform alias#10273
samuelkarp merged 1 commit intocontainerd:mainfrom
thaJeztah:remove_use_of_platform_alias

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

Commit 3c8469a (#7958) 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.

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.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@k8s-ci-robot
Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@samuelkarp samuelkarp added this pull request to the merge queue May 28, 2024
Merged via the queue into containerd:main with commit e32090e May 28, 2024
@thaJeztah thaJeztah deleted the remove_use_of_platform_alias branch May 28, 2024 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants