Open lgp171188 opened 3 months ago
Question for @sergiusens since you wrote the spec for this:
Currently charmcraft only supports the <distro>@<series>
base entry. There's one mention in the spec of something like this. Should be remove it from the spec or do we need to implement this too?
And as a follow-up, would this be a good chance in charmcraft to replace channel
with series
?
we started with the short form on purpose, we will introduce the longer form once we have definitions on some of the multi-base definitions.
The correct name is still channel
, 24.04
is the track in that channel and defaults to stable.
Bug Description
The specification for the platform and base unification mentions the expanded format as a way to define
base
, i.e., instead of specifying it in a short format likeubuntu@24.04
, it can also be specified using a yaml dictionary containing thename
key with valueubuntu
and thechannel
key with the value24.04
. However, with thebase
specified in this way,charmcraft
errors out.To Reproduce
Install
charmcraft
3.x from the appropriate channel. Runcharmcraft pack
with acharmcraft.yaml
defined in the format mentioned later in this bug report.Environment
charmcraft
: installed from the3.x/edge
channel on Ubuntu 24.04 LTScharmcraft.yaml
Relevant log output