From 91d963644755ee435f75d0e7bc4dfb81478d8dac Mon Sep 17 00:00:00 2001 From: Alex Lowe Date: Tue, 4 Mar 2025 20:10:13 -0500 Subject: [PATCH] feat(charmcraft): get cos-tool directly This grabs the `cos-tool` release directly into the dump plugin rather than installing curl and using that. The net effect should be the same. --- charmcraft.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/charmcraft.yaml b/charmcraft.yaml index 8ea5628..f092551 100644 --- a/charmcraft.yaml +++ b/charmcraft.yaml @@ -29,7 +29,7 @@ parts: # Install PyYAML from binary and avoid building it from sources. This way, we can use PyYAML with C-optimized lib. # With the C-optimized lib, serialization in ops is 20x faster. - PyYAML - - cryptography + - cryptography==44.0.1 - jsonschema - pydantic - pydantic-core @@ -43,11 +43,8 @@ parts: charm-requirements: [requirements.txt] cos-tool: plugin: dump - source: . - build-packages: - - curl - override-pull: | - curl -L -O https://github.com/canonical/cos-tool/releases/latest/download/cos-tool-${CRAFT_ARCH_BUILD_FOR} + source: https://github.com/canonical/cos-tool/releases/latest/download/cos-tool-${CRAFT_ARCH_BUILD_FOR} + source-type: file permissions: - path: cos-tool-${CRAFT_ARCH_BUILD_FOR} mode: "755"