You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have found a bug that the documentation does not mention anything about my problem
I have found a bug that there are no open or closed issues that are related to my problem
I have provided version/information about my environment and done my best to provide a reproducer
Description of bug
Bug description
In architectures that support multiple platforms, runc worker might report only the default one. For example, on an arm64 host where the arm checks passes, it reports:
This seems to happen because the runc worker initializes the list of supported platforms with just the default one. Later, when we call Worker.Platforms, the matcher for arm64 reports that it also includes arm and arm/v6 (which is not necessarily true), preventing them from being added to the list of platforms.
The text was updated successfully, but these errors were encountered:
fiam
changed the title
runc worker does not report the correct list of platforms
runc worker does not always report the correct list of platforms
Feb 13, 2025
If the user doesn't set the platform in the config file, then it is initialized with a fully detected list of supported platformshttps://github.com/moby/buildkit/blob/master/cmd/buildkitd/main.go#L528 . So this could only exist if some manual platform were set but not all the fallback platforms for the same manual ones. Theoretically, this could be useful to allow defining that you don't want the fallback behavior, but I'm not sure if it really was intentional.
Would it be sensible to add an omitempty in the configuration struct? Otherwise intiializing the config by serializing the structure will require setting the platforms manually.
Would it be sensible to add an omitempty in the configuration struct? Otherwise intiializing the config by serializing the structure will require setting the platforms manually.
Contributing guidelines and issue reporting guide
Well-formed report checklist
Description of bug
Bug description
In architectures that support multiple platforms, runc worker might report only the default one. For example, on an arm64 host where the arm checks passes, it reports:
This should also include
arm
andarm/v6
.Reproduction
Version information
Additional information
This seems to happen because the runc worker initializes the list of supported platforms with just the default one. Later, when we call Worker.Platforms, the matcher for
arm64
reports that it also includesarm
andarm/v6
(which is not necessarily true), preventing them from being added to the list of platforms.The text was updated successfully, but these errors were encountered: