From 05d2df2d5c0cf1d6f8a88d6d381c135ea44663a4 Mon Sep 17 00:00:00 2001 From: Carl Csaposs Date: Wed, 7 May 2025 18:59:35 +0200 Subject: [PATCH] Fix charm refresh compatibility version tag during build 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 --- charmcraft.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/charmcraft.yaml b/charmcraft.yaml index 5a2f69381d..cc02fdfc67 100644 --- a/charmcraft.yaml +++ b/charmcraft.yaml @@ -90,8 +90,9 @@ parts: - git override-build: | # Set `charm_version` in refresh_versions.toml from git tag - python3 -m venv refresh-version-venv - source refresh-version-venv/bin/activate + # Create venv in `..` so that git working tree is not dirty + python3 -m venv ../refresh-version-venv + source ../refresh-version-venv/bin/activate poetry install --only build-refresh-version write-charm-version