Skip to content

Commit

Permalink
chore: pr feedback, use env var in project file
Browse files Browse the repository at this point in the history
  • Loading branch information
bepri committed Feb 6, 2025
1 parent 75a8945 commit 772dc69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ parts:
uv export --no-dev --no-emit-workspace --output-file uv-requirements.txt
${SNAP}/libexec/snapcraft/craftctl default
version=$(PYTHONPATH=/root/parts/snapcraft/install/lib/python3.12/site-packages python3 -c "import snapcraft;print(snapcraft.__version__)")
version=$(PYTHONPATH=$CRAFT_PART_INSTALL/lib/python3.12/site-packages python3 -c "import snapcraft;print(snapcraft.__version__)")
${SNAP}/libexec/snapcraft/craftctl set version="$version"
[ -n "$(echo $version | grep "+git")" ] && grade=devel || grade=stable
Expand Down

0 comments on commit 772dc69

Please sign in to comment.