canonical / snapcraft

Package, distribute, and update any app for Linux and IoT.
https://snapcraft.io
GNU General Public License v3.0
1.18k stars 440 forks source link

remote build: error if cross-compiling #4996

Open mr-cal opened 3 weeks ago

mr-cal commented 3 weeks ago

What needs to get done

Check if the build plan will create an artefact that is can only be produced by cross-compiling.

If it will, then raise an error before sending the project to Launchpad.

Why it needs to get done

Launchpad does not support cross-compiling or have a concept of build-on vs build-for architectures.

This is a poor UX because the project will be uploaded to Launchpad and Launchpad will not build any artefacts or provide useful error messages.

Example:

platforms:
  platform1:
    build-on: amd64
    build-for: riscv64
syncronize-issues-to-jira[bot] commented 3 weeks ago

Thank you for reporting us your feedback!

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

This message was autogenerated