Skip to content

Commit b9d1d2f

Browse files
Fix charm refresh compatibility version tag during build (#892)
Currently, the charm refresh compatibility version gets marked as dirty since the working tree is not clean This causes all refreshes to get marked as incompatible Follow up to #866
1 parent fa95c88 commit b9d1d2f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

charmcraft.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,9 @@ parts:
9090
- git
9191
override-build: |
9292
# Set `charm_version` in refresh_versions.toml from git tag
93-
python3 -m venv refresh-version-venv
94-
source refresh-version-venv/bin/activate
93+
# Create venv in `..` so that git working tree is not dirty
94+
python3 -m venv ../refresh-version-venv
95+
source ../refresh-version-venv/bin/activate
9596
poetry install --only build-refresh-version
9697
write-charm-version
9798

0 commit comments

Comments
 (0)