Class CohortResolver
java.lang.Object
network.ike.workspace.CohortResolver
Resolves the
Cohort an artifact / release-style workspace verb
acts on, from a starting directory (IKE-Network/ike-issues#610, under
#601).
Searches upward for a workspace.yaml. When found, the cohort is
the workspace's subprojects in topological order — the aggregator root is
excluded, as it is not a released artifact. When not found, the cohort is
the single repository at the start directory: a cohort of one. This is the
home for the "single repo vs workspace" decision that artifact goals — the
bare mode of ws:release / ws:scaffold (#605/#607) — make
for themselves today; the migration in ike-issues#612 folds them onto it.
The decentralized cohort (the foundation cascade, assembled
from release-cascade.yaml) is modelled by
ReleaseCascade — already a
topologically-ordered list; expressing it as a Cohort is a
follow-on as the foundation cascade adopts this type.
-
Method Summary
-
Method Details
-
resolve
Resolve the cohort from a starting directory.- Parameters:
startDir- the directory to resolve from (typically the CWD)- Returns:
- the workspace cohort when a
workspace.yamlis found at or abovestartDir; otherwise the single-repository cohort of one rooted atstartDir
-
singleRepo
-