feat: harden community production foundation through story 1.5
This commit is contained in:
@@ -51,6 +51,8 @@ def package_category(name: str, manifest_path: Path, workspace_root: Path) -> st
|
||||
return "core"
|
||||
if name == "crank-metrics":
|
||||
return "metrics"
|
||||
if name == "crank-config":
|
||||
return "config"
|
||||
if name == "crank-observability":
|
||||
return "observability"
|
||||
if name == "crank-registry":
|
||||
@@ -123,6 +125,9 @@ def boundary_reason(source: Package, dependency: Package) -> str | None:
|
||||
if source.category == "metrics":
|
||||
return "crank-metrics must not depend on other workspace crates"
|
||||
|
||||
if source.category == "config":
|
||||
return "crank-config must not depend on other workspace crates"
|
||||
|
||||
if source.category == "observability" and dependency.category != "metrics":
|
||||
return "crank-observability must not depend on other workspace crates"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user