Lock.ledger.put: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/lock/lock.bend as Lock Lines 253-265 of ezx@1.11.0.0/src/lock/lock.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/lock/lock.bend&start_line=253&end_line=265 import Base import ezx@1.11.0.0/src/ledger/manifest.bend as M # a ledger's dependency as an origin: the repo and rev it names, or the hub. # A hub dependency is recorded too, so that a package the ledger names is told # apart from one it does not, which also resolves from the hub but is not # vouched for by anything a clone has. def ledger.put(git: Bool, +dep: M.Dep) -> List<&2, Origin>: match git: case True{}: [Origin{M.dep.hash(dep), Git{M.source.url(M.source.dep(dep)), M.source.rev(M.source.dep(dep)), M.dep.entry(dep), M.source.root(M.source.dep(dep)), M.source.nar(M.source.dep(dep)), M.source.tag(M.source.dep(dep))}}] case False{}: [Origin{M.dep.hash(dep), ledger.other(M.source.dep(dep), M.dep.entry(dep))}] Uses (14): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ledger/manifest.bend&name=Dep https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ledger/manifest.bend&name=dep.entry https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ledger/manifest.bend&name=dep.hash https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ledger/manifest.bend&name=source.dep https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ledger/manifest.bend&name=source.nar https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ledger/manifest.bend&name=source.rev https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ledger/manifest.bend&name=source.root https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ledger/manifest.bend&name=source.tag https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ledger/manifest.bend&name=source.url https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/lock.bend&name=Origin https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/lock.bend&name=Src https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/lock.bend&name=ledger.other