Skip to content

fix: restore local multi-arch pack support#106

Closed
wallyworld wants to merge 1 commit intojuju:3.6from
wallyworld:fix-platform-definitions
Closed

fix: restore local multi-arch pack support#106
wallyworld wants to merge 1 commit intojuju:3.6from
wallyworld:fix-platform-definitions

Conversation

@wallyworld
Copy link
Member

@wallyworld wallyworld commented Mar 5, 2026

#103 took away (accidentally?) the ability to locally pack the charm for multiple arches.
54bd27d

This PR restores that ability. It assumes we want to build on amd64 as did the original.
It seems remote-build (to build on launchpad) is broken?

$ charmcraft remote-build --launchpad-accept-public-upload
remote-build is experimental and is subject to change. Use with caution.
charmcraft internal error: AttributeError("'ProjectService' object has no attribute 'name'")

So for now we'll need to build locally and upload and release by hand, or maybe I'm holding remote-build wrongly.

QA

$ charmcraft pack
Packed juju-controller_ubuntu-20.04-amd64.charm
Packed juju-controller_ubuntu-20.04-arm64.charm
Packed juju-controller_ubuntu-20.04-s390x.charm
Packed juju-controller_ubuntu-20.04-ppc64el.charm
Packed juju-controller_ubuntu-22.04-amd64.charm
Packed juju-controller_ubuntu-22.04-arm64.charm
Packed juju-controller_ubuntu-22.04-s390x.charm
Packed juju-controller_ubuntu-22.04-ppc64el.charm
Packed juju-controller_ubuntu-24.04-amd64.charm
Packed juju-controller_ubuntu-24.04-arm64.charm
Packed juju-controller_ubuntu-24.04-s390x.charm
Packed juju-controller_ubuntu-24.04-ppc64el.charm

Also note that the running the github action to build and test the charm now correctly puts charms in each arch. You will note that builds of other PRs before this fix only made it to amd64. Maybe there's some secret sauce I'm not aware of but not sure of how we planned to publish across all arches?

         ubuntu 24.04 (amd64)    stable                                                                  -          -
                                 candidate                                                               -          -
                                 beta                                                                    -          -
                                 edge                                                                    -          -
                                 edge/fix-platform-definitions-708527189adb9d2231e587fa29179d8708ba8ac4  222        222         2026-04-04T00:00:00Z
                                 edge/racoon-support-442c3c58eb47339f1889263c01c162cb2083d75a            190        190         2026-04-01T00:00:00Z
                                 edge/racoon-support-737f1f64d4d99170a49ae041adabbd1eb080e14a            186        186         2026-04-01T00:00:00Z
                                 edge/racoon-support-dde783b2b3b3148f835d6c4afa1ba26f756b2a65            182        182         2026-04-01T00:00:00Z
                                 edge/racoon-support-e53f0bf31c0abf64b4d3c324037450a89fe2dae1            194        194         2026-04-01T00:00:00Z
                                 edge/revert-pr-101-59d4220df484941dbc12771af96e4e342f83256c             210        210         2026-04-04T00:00:00Z
         ubuntu 24.04 (arm64)    stable                                                                  -          -
                                 candidate                                                               -          -
                                 beta                                                                    -          -
                                 edge                                                                    -          -
                                 edge/fix-platform-definitions-708527189adb9d2231e587fa29179d8708ba8ac4  223        223         2026-04-04T00:00:00Z
         ubuntu 24.04 (ppc64el)  stable                                                                  -          -
                                 candidate                                                               -          -
                                 beta                                                                    -          -
                                 edge                                                                    -          -
                                 edge/fix-platform-definitions-708527189adb9d2231e587fa29179d8708ba8ac4  224        224         2026-04-04T00:00:00Z
         ubuntu 24.04 (s390x)    stable                                                                  -          -
                                 candidate                                                               -          -
                                 beta                                                                    -          -
                                 edge                                                                    -          -
                                 edge/fix-platform-definitions-708527189adb9d2231e587fa29179d8708ba8ac4  225        225         2026-04-04T00:00:00Z

@wallyworld wallyworld changed the title fix: restore multi-arch pack support fix: restore local multi-arch pack support Mar 5, 2026
@wallyworld wallyworld closed this Mar 5, 2026
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.

1 participant