From 334cbea94d8c861acd686b76146f33e8d96818c7 Mon Sep 17 00:00:00 2001 From: Frode Nordahl Date: Sat, 8 Oct 2022 16:30:07 +0200 Subject: [PATCH 1/2] snap: Add missing stage-package for git on bionic Fixes: #642 --- snap/snapcraft.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 6349cd3..a00a705 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -38,6 +38,7 @@ parts: # in the libc6 package. The libc6 package contains absolute symlinks # pointing at /, which is not allowed in a core22 classic snap. stage-packages: + - libbrotli1 - git-core - libpython3.10 - libpython3.10-minimal From c597eb60d7de8e0dc171397b7b105b2bc333cfd5 Mon Sep 17 00:00:00 2001 From: Frode Nordahl Date: Sat, 8 Oct 2022 16:30:54 +0200 Subject: [PATCH 2/2] create: Deprecate the `charm create` command The charm-tools exist for building and maintenance of already existing reactive charms. For anyone creating new charms the ops framework should be used. --- charmtools/create.py | 8 ++++++++ helpers/snap-wrappers/charm | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/charmtools/create.py b/charmtools/create.py index 1c0874f..3e0ca3a 100755 --- a/charmtools/create.py +++ b/charmtools/create.py @@ -84,6 +84,14 @@ def main(): level=logging.INFO, ) + log.warning('The `charm create` command is DEPRECATED and will be\n' + 'removed in the 3.1 release of charm-tools.\n' + '\n' + 'Please refer to the following resources for\n' + 'information on creating new charms:\n' + 'https://juju.is/docs/sdk/charmcraft-init\n' + 'https://juju.is/docs/sdk/ops\n') + if not args.template: log.info( "Using default charm template (%s). To select a different " diff --git a/helpers/snap-wrappers/charm b/helpers/snap-wrappers/charm index 423b52e..a3477ce 100755 --- a/helpers/snap-wrappers/charm +++ b/helpers/snap-wrappers/charm @@ -18,7 +18,7 @@ tools for building reactive charms commands: build - build a charm from layers and interfaces. - create - create a new charm. + create - (DEPRECATED) create a new charm. help - Show help on a command or other topic. layers - inspect the layers of a built charm. proof - perform static analysis on a charm or bundle.