Pin.gap: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/share/pin.bend as Pin Lines 25-35 of ezx@1.11.0.0/src/share/pin.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/share/pin.bend&start_line=25&end_line=35 import Base import ezx@1.11.0.0/src/ledger/manifest.bend as M # why a plain lock cannot copy a pin as it stands, or "" when it can. A pin # with no repo has nothing to pin, under a plain lock or an upgrade. def gap(pin: M.Tool) -> String: M.Tool{n, _e, _b, s} = pin match s: case M.Hub{_named}: "ez: tools." ++ n ++ " has no git" case M.Git{_url, rev, _tag, _root, nar, _vend}: gap.git(String.is_empty(rev), String.is_empty(nar), n) case M.Member{_path, _named}: "ez: tools." ++ n ++ " has no git" Uses (6): 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=Base/base.bend&name=String.is_empty https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ledger/manifest.bend&name=Source https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ledger/manifest.bend&name=Tool https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/share/pin.bend&name=gap.git