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

build: fix preferred platform not taken into account #1561

Merged
merged 1 commit into from Jan 30, 2023

Conversation

crazy-max
Copy link
Member

@crazy-max crazy-max commented Jan 27, 2023

fixes #1539
fixes #1560

When checking available platforms for current nodes, those are always empty in

for _, p := range node.Platforms {

That's because when loading nodes we don't set the preferred platforms from the store. Therefore builds will always run on the very first node available.

Signed-off-by: CrazyMax crazy-max@users.noreply.github.com

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
@crazy-max crazy-max added this to the v0.10.2 milestone Jan 27, 2023
@crazy-max crazy-max changed the title build: fix preferred platform not taken account build: fix preferred platform not taken into account Jan 28, 2023
@crazy-max crazy-max requested a review from jedevc January 30, 2023 09:05
Copy link
Collaborator

@jedevc jedevc left a comment

Choose a reason for hiding this comment

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

Nice catch ❤️

Yet another reason to make sure we have a better test suite here 😢

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.

buildx doesn't respect platform overrides Long time build with remote node
2 participants