canonical / craft-application

The basis for *craft applications
https://canonical-craft-application.readthedocs-hosted.com/en/latest
GNU Lesser General Public License v3.0
5 stars 6 forks source link

fix: use `build-for` when evaluating project variables #335

Closed mr-cal closed 1 month ago

mr-cal commented 1 month ago

As raised in Matrix (source), BUILD_FOR variables aren't evaluated correctly because the build-for arch was not passed to craft-parts.

Builds on #334, so review last 2 commits only.

Fixes https://github.com/canonical/snapcraft/issues/4770

mr-cal commented 1 month ago

Force-pushed to rebase from #334 onto hotfix/2.6