diff --git a/version-tool.py b/version-tool.py index 26de36eda..48f2b15e1 100755 --- a/version-tool.py +++ b/version-tool.py @@ -57,7 +57,8 @@ def get_rust_paths(): lines = result.stdout.decode('utf-8').splitlines() paths = [] for line in lines: - if line.endswith('Cargo.toml'): + # ignore root Cargo.toml + if line.endswith('Cargo.toml') and '/' in line: paths.append(line) return paths