launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #30356
[Merge] ~cjwatson/lp-signing:charm-fix-part-name into lp-signing:master
Colin Watson has proposed merging ~cjwatson/lp-signing:charm-fix-part-name into lp-signing:master.
Commit message:
charm: Fix final part name
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~cjwatson/lp-signing/+git/lp-signing/+merge/448503
The example in https://juju.is/docs/sdk/charmcraft-yaml#heading--the-reactive-plugin calls the final (and in that case only) part "charm". I'd thought that was just an example. However, as of https://github.com/canonical/charmcraft/commit/35adadf42c625c5ee5ed6d611c9bdec10413ae59 in charmcraft 2.4.0, calling the final part anything else causes charms to be misbuilt; they end up containing unmodified copies of the top-level `actions.yaml`, `config.yaml`, and `metadata.yaml` files rather than merging the information provided by each layer.
--
Your team Launchpad code reviewers is requested to review the proposed merge of ~cjwatson/lp-signing:charm-fix-part-name into lp-signing:master.
diff --git a/charm/lp-signing/charmcraft.yaml b/charm/lp-signing/charmcraft.yaml
index b74001b..9b1a73d 100644
--- a/charm/lp-signing/charmcraft.yaml
+++ b/charm/lp-signing/charmcraft.yaml
@@ -31,7 +31,7 @@ parts:
- layers
prime:
- "-layers"
- lp-signing:
+ charm:
after:
- charm-wheels
- ols-layers