def why

ezx@1.11.0.0 · src/ws/joint.bend:352

import ezx@1.11.0.0/src/ws/joint.bend as Joint
import Base
import ezx@1.11.0.0/src/ledger/manifest.bend as M

352# why the members cannot be joined
353def why(+root: M.Manifest, +ms: List<&2, Member>) -> String:
354  +other = hubs.other(root.hub(root), ms)
355  +dep = clash.go(all.deps(root, ms), all.deps(root, ms))
356  +pin = pins.clash.go(all.deps(root, ms), all.deps(root, ms))
357  +tool = tools.clash.go(all.tools(root, ms), all.tools(root, ms))
358  Bool.pick(String, String.is_empty(other),
359    Bool.pick(String, String.is_empty(dep),
360      Bool.pick(String, String.is_empty(pin),
361        "ez: workspace members pin the tool " ++ tool ++ " differently",
362        "ez: workspace members pin " ++ pin ++ " at different commits; " ++
363          "move it for all of them with ez lock --upgrade --package"),
364      "ez: workspace members depend on " ++ dep ++ " differently"),
365    "ez: workspace member " ++ other ++ " names another hub than the root's")

Uses (14)

Used by (1)