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

New remote builder fails with some platforms definitions #4858

Open
mr-cal opened this issue Jun 17, 2024 · 1 comment
Open

New remote builder fails with some platforms definitions #4858

mr-cal opened this issue Jun 17, 2024 · 1 comment
Labels

Comments

@mr-cal
Copy link
Collaborator

mr-cal commented Jun 17, 2024

Bug Description

Problem 1

Launchpad fails to parse many platforms definitions.

We need to complete canonical/craft-platforms#5 and sync with the Launchpad team to consume that build planner.

Problem 2

The legacy remote builder would only allow snaps that could build a single artefact on a build-on architecture. That is an architecture could only appear once in all build-on entries.

The new remote builder doesn't restrict this. This is a problem because Launchpad's API appears not to distinguish between build-on and build-for, so it is not clear Snapcraft can request builds.

To Reproduce

snapcraft remote-build --platform amd64

Environment

n/a

snapcraft.yaml

name: remote-build-platforms-error
version: "1.0"
summary: test
description: test
confinement: strict

base: core24

platforms:
  amd64:
    build-on: amd64
  arm64:
    build-on: amd64

parts:
  my-part:
    plugin: nil

Relevant log output

Multiple builds match the current platform.
Recommended resolution: Check the "--platform" and "--build-for" parameters.

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant