Skip to content

Commit

Permalink
feat(charmcraft): get cos-tool directly
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lengau committed Mar 5, 2025
1 parent c8d34f9 commit 91d9636
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 91d9636

Please sign in to comment.