Skip to content

Commit

Permalink
Fix workspace
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo committed Feb 18, 2024
1 parent c95acaf commit 13fc10b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import subprocess
import sys
from pathlib import Path
from constants import PACKAGES


Expand All @@ -28,6 +29,14 @@
for directory in PACKAGES:
print(f"Executing '{command}' in {directory}")

# Make cargo happy if `Cargo.toml` not exist
if (
command.startswith("cargo")
and not (Path(directory) / "Cargo.toml").exists()
):
print(f"Skip {directory} because `Cargo.toml` not exist")
continue

subprocess.run(
command,
shell=True,
Expand Down

0 comments on commit 13fc10b

Please sign in to comment.