Skip to content

Commit

Permalink
snap: set the version from the cargo file
Browse files Browse the repository at this point in the history
  • Loading branch information
soumyaDghosh committed Jun 28, 2024
1 parent 6b44b65 commit 1c0caa5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ parts:
amber:
plugin: rust
source: .
build-packages:
- yq
override-pull: |
craftctl default
craftctl set version=$(git describe --tags --abbrev=10)
craftctl set version=$(cat $CRAFT_PART_SRC/Cargo.toml | tomlq -rc '.package.version')
apps:
Expand Down

0 comments on commit 1c0caa5

Please sign in to comment.