src/lock/lock.bend fails
raw source on the hub · import ezx@1.10.0.0/src/lock/lock.bend as Lock
lock/lock: the lock document. What a package is (its source and its files),
where the ledger says each package comes from, the imports a package's
sources name, and the text of ez.lock.toml, written and read back. Nix reads
the lock and fetches each file as a fixed-output derivation, so bend never
touches the network inside the sandbox.
A package resolves from the hub, or, when it was vendored from a repo that never published, from the git rev recorded for it. Both end up as the same BEND_LIB tree. ez.toml is the only record of where a package comes from.
Everything here is pure. Deciding the lock is lock/plan.bend's, over the
World lock/world.bend describes, and reading and writing are
lock/run.bend's. ez fetch reads a lock back in fetch/plan.bend.
4 imports
import Base import ../toml/toml.bend as T import ../ledger/manifest.bend as M import ../pkg/pkg.bend as K
The reader could not load this file (at 0xa75de0623b4b308c27d8fdf1abe399cb/src/ledger/manifest.bend:41). What bend.ts says:
Error:
- expected : a fresh name (duplicate declaration: Tool)
- observed : 'Tool'
Location:
40 | # not be the one.
41>| type Tool is Data:
| ^^^^
42 | Tool{name: String, entry: String, bin: String, source: Source}