canonical / craft-application

The basis for *craft applications
GNU Lesser General Public License v3.0
5 stars 6 forks source link

Allow build-for "all" for platform-independent builds. #360

Open lengau opened 1 week ago

lengau commented 1 week ago

What needs to get done

  1. A Platform needs to accept a build-for architecture of "all" as the only architecture: https://github.com/canonical/craft-application/blob/11b4fff6c4cbb9dfb78720bb23bb9ddbaa6f614f/craft_application/models/project.py#L103
  2. --build-for needs to accept all as a valid architecture.
  3. An application should be able to disable this (e.g. Rockcraft)

And tests to ensure that an application works with this in mind.

Why it needs to get done

Older Snapcraft and Charmcraft supported this.

https://forum.snapcraft.io/t/architectures/4972/25

syncronize-issues-to-jira[bot] commented 1 week ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-3016.

This message was autogenerated