From 99e1a364fdf97b2c6443ab905b1429b2397dd352 Mon Sep 17 00:00:00 2001 From: Jelle Spijker Date: Mon, 12 Feb 2024 18:02:08 +0100 Subject: [PATCH] update commit hash Contributes to CURA-11622 --- conanfile.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/conanfile.py b/conanfile.py index 4476ed433..82de44329 100644 --- a/conanfile.py +++ b/conanfile.py @@ -6,7 +6,7 @@ from conan.tools.env import VirtualBuildEnv, VirtualRunEnv from conan.tools.files import copy, mkdir, update_conandata from conan.tools.microsoft import unix_path -from conan.tools.scm import Version +from conan.tools.scm import Version, Git from conan.errors import ConanInvalidConfiguration required_conan_version = ">=1.58.0" @@ -84,7 +84,8 @@ def _py_interp(self): return py_interp def export(self): - update_conandata(self, {"version": self.version}) + git = Git(self) + update_conandata(self, {"version": self.version, "commit": git.get_commit()}) def export_sources(self): copy(self, "*", os.path.join(self.recipe_folder, "plugins"),