Skip to content

build/resolver: preserve configured platform priority - #4133

Open
crazy-max wants to merge 1 commit into
docker:masterfrom
crazy-max:fix-platform-priority
Open

crazy-max wants to merge 1 commit into
docker:masterfrom
crazy-max:fix-platform-priority

Conversation

@crazy-max

Copy link
Copy Markdown
Member

fixes #4132

When any requested platform requires worker discovery, Buildx re-resolves all requested platforms and can select an earlier node's detected platform over a later node's explicit configuration. This can send builds to the wrong node despite an explicit --platform assignment.

Preserve strict matches against configured platforms before considering detected capabilities. Exact detected matches still take precedence over merely compatible configured platforms.

Keep strict matches for configured node platforms when worker discovery
adds overlapping capabilities. Otherwise, an earlier node can take builds
explicitly assigned to a later node when any requested platform requires
discovery.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
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.

Buildx schduling on non-preffered builders

2 participants