Is there any reason not to deprecate implicit series support, i.e. defining what series a charm supports solely by how it is uploaded to the store, in charm build
, in favor of explicitly defining the supported series in the charm’s metadata.yaml
? The latter can handle single or multi-series charms and has been available (and I believe recommended) for some time, but charm build
still tries to make guesses about the series when it can’t be determined. And it seems that the more common reason for not being determined (at least in my experience) is due to trying to build from an invalid directory. I think that failing fast in this case would be a better overall user experience.
If there are no objections, I’d like to introduce a deprecation warning with the next release of the charm
snap, and make it fatal (perhaps with an override flag) on the subsequent release.