diff --git a/.github/workflows/check_nexus_version.yml b/.github/workflows/check_nexus_version.yml index 51e04816a..73fa9d73d 100644 --- a/.github/workflows/check_nexus_version.yml +++ b/.github/workflows/check_nexus_version.yml @@ -17,7 +17,7 @@ jobs: git submodule update --init --recursive --jobs=4 git submodule foreach --recursive 'git fetch --tags' cd src/pynxtools/definitions - git describe --dirty --tags --long --match "*[0-9]*" > ../nexus-ref.txt + git describe --dirty --tags --long --abbrev=8 --match "*[0-9]*" > ../nexus-ref.txt cd ../ - name: Diff run: | diff --git a/src/pynxtools/_build_wrapper.py b/src/pynxtools/_build_wrapper.py index d07aa084a..6f94553a0 100644 --- a/src/pynxtools/_build_wrapper.py +++ b/src/pynxtools/_build_wrapper.py @@ -28,6 +28,7 @@ def get_vcs_version(tag_match="*[0-9]*") -> Optional[str]: "--dirty", "--tags", "--long", + "--abbrev=8", "--match", tag_match, ],