Skip to content

Commit

Permalink
crates.py support non workspace members
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Apr 9, 2024
1 parent 9d77a91 commit 33b24c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/ci/crates.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ def get_workspace_crates(root: dict[str, Any]) -> dict[str, Crate]:
for pattern in root["workspace"]["members"]:
for crate in [member for member in glob(pattern) if os.path.isdir(member)]:
crate_path = Path(crate)
if not os.path.exists(crate_path / "Cargo.toml"):
continue
manifest_text = (crate_path / "Cargo.toml").read_text()
manifest: dict[str, Any] = tomlkit.parse(manifest_text)
crates[manifest["package"]["name"]] = Crate(manifest, crate_path)
Expand Down

0 comments on commit 33b24c2

Please sign in to comment.