juju / charm-tools

Tools for charm authors and maintainers
Other
42 stars 64 forks source link

charm-tools 2.8.x snap only releases for amd64; need arm64, ppc64el and s390x releases #666

Open ajkavanagh opened 1 year ago

ajkavanagh commented 1 year ago

Checklist

Issue

When trying to release v2.8.7 of charm-tools in the snapstore, I noticed that there were no builds available to release into arm64, ppc64el and s390x. This means that the tools to build them will miss features, bug fixes and security updates. The 2.8 branch was made amd64 only in commit 98edcd30.

Solution

Update the snap/snapcraft.yaml to produce builds for arm64, ppc64el and s390x and get them building and into the snapstore.

fnordahl commented 11 months ago

@ajkavanagh I'm not sure if the referenced PR fixes this issue?

One of the main reasons the project was split into 2.8 and 3.x versions was that due to changes in adjacent projects some of the 2.8 versions dependencies are no longer maintained.

As laid out in commit 17812f0e00ad634f8440053d43d1a5370a71fa50 one of these are bhttp, and since it no longer builds with modern snapcraft versions we made a tactical decision to consume it from the bhttp snap.

The bhttp snap is only available for amd64.

freyes commented 10 months ago

@ajkavanagh I'm not sure if the referenced PR fixes this issue?

you are right, Frode, thanks for reopening this.

One of the main reasons the project was split into 2.8 and 3.x versions was that due to changes in adjacent projects some of the 2.8 versions dependencies are no longer maintained.

As laid out in commit 17812f0 one of these are bhttp, and since it no longer builds with modern snapcraft versions we made a tactical decision to consume it from the bhttp snap.

The bhttp snap is only available for amd64.

I just understood what's going on here. bhttp snap is only available in latest/edge for arm64, while amd64 snap is in latest/stable, I think this is where the issue comes from.

$ snap info bhttp
name:      bhttp
summary:   Macaroon-aware HTTP command line client
publisher: rog
store-url: https://snapcraft.io/bhttp
license:   unset
description: |
  The bhttp snap provides the bhttp command line tool which
  replicates the command-line interface of httpie but will also
  automatically obtain macaroon-based authentication when
  required by the server.
commands:
  - bhttp
snap-id:      Lyh4DOELsVckHXsTHgNFkLNGoQjT3Um5
tracking:     latest/edge
refresh-date: today at 17:04 -03
channels:
  latest/stable:    –                                 
  latest/candidate: –                                 
  latest/beta:      –                                 
  latest/edge:      0+git.8623f22 2019-06-13 (32) 3MB -
installed:          0+git.8623f22            (32) 3MB -
freyes commented 10 months ago

I'm rebuilding the charm snap using bhttp/latest/edge