src/git/git.bend fails
raw source on the hub · import ezx@1.6.0.0/src/git/git.bend as Git
git/git: what ez asks of git, and how it reads the answers. The decisions are
pure functions over what git ls-remote printed and what a checkout's
ez.toml says: which tag ez add pins (choose), what a named ref names
(exact), the default branch (tip.*), whether a ref is already a commit
(is_rev), and a package's entry and name (entry.*, called.*). The
planners (add/plan.bend, lock/up.bend) make them; the commands that run git
are the interpreters', which clone, weigh and ask about ancestry, and they
live in git/exec.bend, since they reach foreign code a law may not import.
Nothing here reimplements git. Bend links no TLS and Base has no readdir, so the programs that already speak the protocol are run instead, through the one process effect the rest of ez uses: arguments execvp'd, no shell between.
6 imports
import Base import ../io/file.bend as F import ../toml/toml.bend as T import ../ledger/manifest.bend as M import ../pkg/pkg.bend as K import ../pkg/path.bend as P
The reader could not load this file (at 0x3f0fc9ea10e26a05d780e2727546ce31/src/ledger/manifest.bend:31). What bend.ts says:
Error:
- expected : a fresh name (duplicate declaration: Tool)
- observed : 'Tool'
Location:
30 | # not be the one.
31>| type Tool is Data:
| ^^^^
32 | Tool{name: String, entry: String, bin: String, source: Source}