Skip to content

Commit

Permalink
fix version again
Browse files Browse the repository at this point in the history
  • Loading branch information
MP91 committed Feb 26, 2024
1 parent 1563451 commit 6abd393
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ def set_version(self):
if not version:
version = subprocess.run(["git", "symbolic-ref", "-q", "--short", "HEAD"],capture_output=True).stdout.strip().decode("utf-8")
if not version:
subprocess.run(["git", "rev-parse", "--short", "HEAD"],capture_output=True).stdout.strip().decode("utf-8")
version = subprocess.run(["git", "rev-parse", "--short", "HEAD"],capture_output=True).stdout.strip().decode("utf-8")

# / is not allowed in conan version
version = version.replace("/", ".")
open("./version.txt", mode="w", encoding="utf-8").write(version)
self.version = version
Expand Down

0 comments on commit 6abd393

Please sign in to comment.