Named.hub.why: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/ez/named.bend as Named Lines 247-261 of ezx@1.11.0.0/src/ez/named.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/ez/named.bend&start_line=247&end_line=261 import Base import ezx@1.11.0.0/src/ledger/manifest.bend as M # why a hub package cannot be recorded under a name, or nothing when it can: # a `--rename` that is no key, a `--rename` of a name part the ledger records # under another name, or a name the ledger gives another source def hub.why(+ds: List<&2, M.Dep>, +name: String, +part: String, +rename: String) -> String: +old = hub.had(ds, part) Bool.pick(String, renamed.ok(rename), Bool.pick(String, moved.of(old, rename), "ez: " ++ part ++ " is already recorded as deps." ++ old ++ "; remove it first to record it as " ++ rename, Bool.pick(String, hub.clash(ds, name, part), "ez: ez.toml already has a deps." ++ name ++ " from another source; " ++ "remove it first, or add this one with --rename", "")), "ez: --rename " ++ rename ++ " is not a TOML bare key " ++ "(letters, digits, `-` and `_`)") Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ez/named.bend&name=hub.clash https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ez/named.bend&name=hub.had https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ez/named.bend&name=moved.of https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ez/named.bend&name=renamed.ok https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ledger/manifest.bend&name=Dep