diff --git a/scripts/build_change_log.py b/scripts/build_change_log.py index 80bda742b..b95d8f9c4 100755 --- a/scripts/build_change_log.py +++ b/scripts/build_change_log.py @@ -284,6 +284,13 @@ def load_cargo_version(): t = toml.loads(cargo) ver = t['package']['version'] + + if ver == {'workspace': True}: + with open('./Cargo.toml', 'r') as f: + cargo = f.read() + t = toml.loads(cargo) + ver = t['workspace']['package']['version'] + print("--- openraft/Cargo.toml version is", ver) return ver