Skip to content

Commit

Permalink
version-tool.py: Ignore root Cargo.toml
Browse files Browse the repository at this point in the history
No need to process it and it confuses the script.
  • Loading branch information
htejun committed Oct 2, 2024
1 parent 054352f commit 60c9ae7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion version-tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 60c9ae7

Please sign in to comment.