~/bend-docscommunity

src/pub/plan.bend checks

raw source on the hub · import ezx@1.17.0.0/src/pub/plan.bend as Plan

pub/plan: the planner for ez publish, pure. It reads a World (pub/world.bend) and either asks the questions still open or makes the plan. The package is sent to the hub by bend --publish, which is the only thing that can send it, but the 0x name ez reports is the one the package walk (pkg/pkg.bend) computed from the files, never the one bend printed. Reading bend's output is a check, not a lookup: ez already knows the answer before bend runs, and what bend says is compared against it.

Publishing is irreversible and public, so every check that can be made before the upload is made first, in this order: there is a ledger that parses, and it names the entry, and the name it publishes under, if any, is one bend takes (laws/PublishUnderName.bend); git answers git status --porcelain --untracked-files=normal about the project and names no path (laws/PublishNeedsCleanTree.bend); the walk from the entry makes a package; git tracks every file of that package; and the hub the ledger names has every hub package the package imports (laws/PublishNeedsDepsOnHub.bend). Only then is the upload asked for, and its answer is checked against ez's hash (laws/PublishAgreesWithBend.bend). bend cannot report a package's hash without uploading it, so that check comes after the upload, and a disagreement exits 1 with no import line rather than taking the upload back.

Each stage of decide reads what it needs from the World itself rather than from the stage before, so a law about one stage holds of every World whatever the others say.

12 imports
import Base
import ../lock/plan.bend as P
import ../tool/world.bend as TW
import ../ledger/manifest.bend as M
import ../pkg/pkg.bend as K
import ../pkg/path.bend as Path
import ../git/git.bend as G
import ./world.bend as PW
import ./blurb.bend as B
import ../lock/lock.bend as L
import ../share/sha.bend as Sha
import ../io/file.bend as F

Types

type Named source · line 189 · raw

Data

how the ledger names the package on the hub: not at all, so it is published by its hash alone; by <name>@<version>, as bend's --publish takes it; or in a way ez refuses, and why

type Led source · line 255 · raw

Data

what the ledger says: the entry it names and how the package is named on the hub, by its hash or by a <name>@<version>, or why there is none

type Status source · line 334 · raw

Data

what git status said of the project, still to ask, or why it said nothing

type Kept source · line 520 · raw

Data

what git said of the package's files: every one tracked, the first one it does not track, still to ask, or why it said nothing

type Probe source · line 688 · raw

Data

a hub package the package imports, as the hub is asked about it: by its 0x name, whose manifest the hub serves at <hub>/<hash>/manifest; or by its <name>@<version>, which the hub resolves at <hub>/name/<nv>, with the hash ez.lock.toml or ez.toml resolved the name to, "" when neither records one

type Seen source · line 904 · raw

Data

where one probe stands: on the hub, not asked yet, or off it, with the line a refusal says of it

type Tally source · line 997 · raw

Data

the probes not asked yet, and the lines for the ones off the hub

type Hubbed source · line 1030 · raw

Data

every hub package the package imports on the hub, some still to ask about, or why the command refuses

type Verdict source · line 1084 · raw

Data

every check passed, questions still open, or why the command refuses

type Step source · line 1237 · raw

Data

the questions still open, or the plan once there are none

Definitions

def name.length source · line 44 · raw

Nat

how many characters a 0x name is written with: the two of the prefix and the thirty-two pkg/pkg.bend's hash_of takes off a sha256

def is_name source · line 58 · raw

@+word:String -> Bool

whether a line is a 0x package name and nothing else. Anchored at both ends: the prefix, the exact length, and every character after the prefix one a lowercase hex digest may hold. git/git.bend already walks a hex string for is_rev, and its walk stops at the first character that is not hex.

The lines bend prints around its answer fail this, and laws/PublishAgreesWithBend.bend says so for the two that hold the name, rather than leaving it to a reading of bend's source: publishing N files, ... as 0x... (mining its proof of work) and import 0x.../entry.bend as Name each start with something that is not 0x. The terms notice and the license line bend 2.0.27 prints first (Publishing to BendHub: ..., License: ...) start with a word too.

def agrees.step source · line 67 · raw

@name:Bool -> @same:Bool -> @seen:Bool -> @rest:(@_:Bool -> Bool) -> Bool

one line of bend's output weighed. A line that is a name must be ours, and makes the rest of the walk one that has seen a name; any other line is passed over. Bool.and builds both of its sides, so the rest of the walk arrives as a function of whether a name was seen and is applied once.

def agrees.go source · line 76 · raw

@+ours:String -> @ls:List<&2, String> -> @seen:Bool -> Bool

whether bend's output, from this line on, agrees with ez's hash, seen saying whether a line before it was a name

def agrees source · line 88 · raw

@+ours:String -> @ls:List<&2, String> -> Bool

whether bend's output agrees with ez's hash: at least one line is a 0x name, and every line that is one is ez's hash. There is no second pattern behind this one. An output with no bare name answers nothing, and one that names two packages names one that is not ours, whichever it names first.

def other.step source · line 92 · raw

@odd:Bool -> @line:String -> @rest:(@_:Unit -> String) -> String

the first line that is a 0x name and not ours, "" when there is none

def other source · line 100 · raw

@+ours:String -> @ls:List<&2, String> -> String

the walk that finds it, one line at a time

def dirty.step source · line 116 · raw

@blank:Bool -> @rest:(@_:Unit -> Bool) -> Bool

one line of git status --porcelain weighed, with the rest of the walk behind a thunk so a status that names a hundred files stops at the first. Every line git prints there names a path whose state on disk is not the state the commit holds, so every one of them counts, whatever its two-letter code says, ?? for an untracked file included.

def dirty.lines source · line 126 · raw

@ls:List<&2, String> -> Bool

whether any line of the status says anything. The only empty line git status ever produces is the one String.lines makes of the trailing newline, so an empty line is the absence of a change rather than a change with no name.

def blanks.step source · line 134 · raw

@blank:Bool -> @rest:(@_:Unit -> Bool) -> Bool

one line of the other walk, the same way round

def blanks source · line 145 · raw

@ls:List<&2, String> -> Bool

whether the status named nothing. Stated as its own walk rather than as the negation of the one above, so laws/PublishNeedsCleanTree.bend can hold the two to each other: a tree is clean exactly when git named no path at all.

def dirty source · line 157 · raw

@text:String -> Bool

whether git status --porcelain named a path. Ignored files are not named, and that is the project's call, written in its own .gitignore: .ez/ and bin/ hold build output that no commit should. What the package itself holds is checked apart from this (stray below), so an ignored file the entry imports is refused there.

def semver.char source · line 164 · raw

@+ch:Char -> Bool

one character of a version: a digit or a dot

def semver.chars source · line 170 · raw

@text:String -> Bool

whether every character of a version is a digit or a dot. A pre-release (1.0.0-rc.1) or build (1.0.0+abc) suffix holds a character that is neither, so this is where one is refused, whatever follows it.

def semver source · line 181 · raw

@+text:String -> Bool

whether a version is MAJOR.MINOR.PATCH: digits and dots only, and three numbers, none with a leading zero (K.ver.num, the rule bend's NAMED holds each of its four numbers to)

def why.nover source · line 195 · raw

@+name:String -> String

why a publish-as with no version is refused

def why.noname source · line 200 · raw

@+ver:String -> String

why a version with no publish-as is refused

def why.name source · line 205 · raw

@+name:String -> String

why a publish-as the hub would not take is refused

def why.ver source · line 210 · raw

@+ver:String -> String

why a version that is not MAJOR.MINOR.PATCH is refused

def naming.both source · line 217 · raw

@name:Bool -> @ver:Bool -> @+pa:String -> @+pv:String -> Named

both keys given: the name first, then the version, then the name bend is asked for, the version with bend's fourth number, 0, after it

def naming.go source · line 231 · raw

@noname:Bool -> @nover:Bool -> @+pa:String -> @+pv:String -> Named

which of the two keys the ledger gives. Neither is a publish by hash, as before the keys existed; one without the other is refused rather than guessed at, as cargo publish refuses a package with no version.

def naming source · line 247 · raw

@+pa:String -> @+pv:String -> Named

how publish-as and version name the package

def led.named source · line 260 · raw

@+entry:String -> @got:Named -> Led

the entry, with the name the package goes under, or why it goes under none

def led.read source · line 271 · raw

@ledger:0x9b437420348c999bf7a583a0fe7a67f5/src/ledger/manifest.Read -> Led

the entry a parsed ledger names, main.bend when it names none, and the name its publish-as and version give it

def led.of source · line 282 · raw

@got:Maybe<&2, String> -> Led

the ledger read. With no ez.toml there is no package, and nothing is guessed in its place (cargo publish refuses a directory with no Cargo.toml the same way).

def led source · line 291 · raw

@world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> Led

what the World's ledger says

def entry.of source · line 295 · raw

@ledger:Led -> String

the entry, as the walk takes it, "" when the ledger names none

def named.of source · line 304 · raw

@ledger:Led -> Named

how the package goes on the hub; a ledger that names no entry sends nothing, so it is taken for one that goes by hash

def named source · line 312 · raw

@world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> Named

how a World's package goes on the hub

def named.word source · line 316 · raw

@got:Named -> String

the <name>@<version> the upload names the package by, "" for none

def entry source · line 326 · raw

@world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> String

the entry of a World

def locate source · line 340 · raw

@world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> 0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.Ask

the question: what git says of the directory the project is in

def status.ran source · line 346 · raw

@ok:Bool -> @+text:String -> Status

a status that git answered, or the command stopped with what git said. A directory that is not in a git repository has no commit for what goes to the hub to exist in, so it is refused rather than taken for clean.

def status.told source · line 353 · raw

@got:0x9b437420348c999bf7a583a0fe7a67f5/src/tool/world.Answer -> Status

def status.answer source · line 362 · raw

@got:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.Answer -> Status

def status.of source · line 369 · raw

@got:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.Heard -> Status

def status source · line 377 · raw

@+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> Status

what git status said of the project

def tree.told source · line 385 · raw

@got:0x9b437420348c999bf7a583a0fe7a67f5/src/tool/world.Answer -> @+path:String -> @rest:0x9b437420348c999bf7a583a0fe7a67f5/src/pkg/pkg.Tree -> 0x9b437420348c999bf7a583a0fe7a67f5/src/pkg/pkg.Tree

a file the walk asked for, added to what it is given: its text, or gone when there is none

def tree.read source · line 392 · raw

@got:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.Answer -> @+path:String -> @rest:0x9b437420348c999bf7a583a0fe7a67f5/src/pkg/pkg.Tree -> 0x9b437420348c999bf7a583a0fe7a67f5/src/pkg/pkg.Tree

def tree.tool source · line 399 · raw

@ask:0x9b437420348c999bf7a583a0fe7a67f5/src/tool/world.Ask -> @got:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.Answer -> @rest:0x9b437420348c999bf7a583a0fe7a67f5/src/pkg/pkg.Tree -> 0x9b437420348c999bf7a583a0fe7a67f5/src/pkg/pkg.Tree

def tree.one source · line 406 · raw

@ask:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.Ask -> @got:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.Answer -> @rest:0x9b437420348c999bf7a583a0fe7a67f5/src/pkg/pkg.Tree -> 0x9b437420348c999bf7a583a0fe7a67f5/src/pkg/pkg.Tree

def tree.of source · line 415 · raw

@rs:List<&2, 0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.Reply> -> 0x9b437420348c999bf7a583a0fe7a67f5/src/pkg/pkg.Tree

every file read so far, as the walk is given them: not a whole checkout, so a file not read yet is a question

def tree source · line 423 · raw

@world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> 0x9b437420348c999bf7a583a0fe7a67f5/src/pkg/pkg.Tree

the files the walk has been given

def fuel source · line 428 · raw

@fs:List<&2, 0x9b437420348c999bf7a583a0fe7a67f5/src/pkg/pkg.Source> -> Nat

the walk's fuel: one step for the entry and one per line of the files it was given, since every import it can queue is a line of one of them

def fuel.of source · line 435 · raw

@tr:0x9b437420348c999bf7a583a0fe7a67f5/src/pkg/pkg.Tree -> Nat

def walked source · line 440 · raw

@+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> 0x9b437420348c999bf7a583a0fe7a67f5/src/pkg/pkg.Walked

the package the entry is published as, over the files read so far

def hash.of source · line 444 · raw

@got:0x9b437420348c999bf7a583a0fe7a67f5/src/pkg/pkg.Walked -> String

the package's hash, "" while there is none

def hash source · line 454 · raw

@+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> String

the hash ez computed for the package

def root.of source · line 458 · raw

@got:0x9b437420348c999bf7a583a0fe7a67f5/src/pkg/pkg.Walked -> String

the directory the package's paths are written from, "." for the project's

def at source · line 470 · raw

@+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> String

the entry's path inside the package, which is where the hub serves it: the entry's name, under the directories the package re-rooted above it when an import climbs out of the entry's directory

def paths source · line 474 · raw

@+root:String -> @fs:List<&2, 0x9b437420348c999bf7a583a0fe7a67f5/src/pkg/pkg.Source> -> List<&2, String>

the files of a package, as paths of the project

def tracked.step source · line 488 · raw

@hit:Bool -> @rest:(@_:Unit -> Bool) -> Bool

whether git ls-files -v names a path as tracked in the ordinary way. H is a file git holds and watches; a file marked --assume-unchanged (h) or --skip-worktree (S) is one whose changes git status does not report, so its text on disk need not be the commit's, and it counts as untracked.

def tracked.has source · line 495 · raw

@ls:List<&2, String> -> @+path:String -> Bool

def stray.step source · line 504 · raw

@kept:Bool -> @+path:String -> @rest:(@_:Unit -> String) -> String

the first path of the package that git does not track, "" when every one is tracked

def stray.first source · line 511 · raw

@+ls:List<&2, String> -> @ps:List<&2, String> -> String

def kept.of source · line 526 · raw

@+first:String -> Kept

def kept.ran source · line 529 · raw

@ok:Bool -> @+text:String -> @+ps:List<&2, String> -> Kept

def kept.answer source · line 536 · raw

@got:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.Answer -> @+ps:List<&2, String> -> Kept

def kept.heard source · line 543 · raw

@got:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.Heard -> @+ps:List<&2, String> -> Kept

def kept.walked source · line 550 · raw

@got:0x9b437420348c999bf7a583a0fe7a67f5/src/pkg/pkg.Walked -> @+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> Kept

def stray source · line 562 · raw

@+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> Kept

whether git tracks every file of the package. An ignored file the entry imports is one git status never names, and one the upload would send though no commit holds it, so it is refused here.

def upload.go source · line 572 · raw

@bare:Bool -> @+entry:String -> @+named:String -> List<&2, String>

the words the upload runs: the entry, and after --publish the <name>@<version> the package goes under when it has one, which is how bend 2.0.27 publishes and names a package in one run (bend <file> --publish <name>@<version>). With no name it is the upload by hash alone.

def upload.line source · line 579 · raw

@+entry:String -> @+named:String -> List<&2, String>

def files.of source · line 584 · raw

@got:0x9b437420348c999bf7a583a0fe7a67f5/src/pkg/pkg.Walked -> List<&2, 0x9b437420348c999bf7a583a0fe7a67f5/src/pkg/pkg.Source>

the files of a package, with their texts, at the paths the hub holds them at; none while there is no package

def said source · line 597 · raw

@+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> String

what is said just before the upload: the line the hub will describe the package by (B.blurb). A package whose first file opens with import Base would be listed that way for good, so the author sees the line while the upload can still be stopped.

def upload source · line 602 · raw

@+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> 0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.Ask

the question: the entry sent, under the name the ledger gives it, with the line said before it

def uploaded source · line 606 · raw

@+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> 0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.Heard

the upload's answer, looked up

def agreed.answer source · line 611 · raw

@got:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.Answer -> @+ours:String -> Bool

whether an upload's answer agrees with ez's hash: bend exited 0, and its output agrees (agrees)

def agreed.of source · line 618 · raw

@got:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.Heard -> @+ours:String -> Bool

def agreed source · line 626 · raw

@+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> Bool

whether the World's upload agrees with the hash ez computed

def why.read source · line 633 · raw

@+ours:String -> @+text:String -> String

why an upload that bend finished does not agree: it printed no line that is a name, or a name that is not ours. Both numbers are named, since the next question is which walk drifted, and neither is reported as the package's name.

def why.ran source · line 645 · raw

@ok:Bool -> @+words:String -> @+ours:String -> @+text:String -> String

why an upload refuses, words being the line it ran. bend has sent the package by the time it answers, since it cannot report the hash without sending it, so this is said after the fact.

def why.answer source · line 652 · raw

@got:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.Answer -> @+words:String -> @+ours:String -> String

def why.of source · line 659 · raw

@got:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.Heard -> @+words:String -> @+ours:String -> String

def why.upload source · line 667 · raw

@+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> String

why the World's upload refuses

def texts source · line 693 · raw

@fs:List<&2, 0x9b437420348c999bf7a583a0fe7a67f5/src/pkg/pkg.Source> -> List<&2, String>

the texts of the package's files

def once.pick source · line 701 · raw

@dup:Bool -> @+word:String -> @rest:List<&2, String> -> List<&2, String>

a string kept unless it was seen before

def once.go source · line 709 · raw

@xs:List<&2, String> -> @+seen:List<&2, String> -> List<&2, String>

each string of a list once, where it first appears

def once source · line 717 · raw

@xs:List<&2, String> -> List<&2, String>

each string of a list once

def sources source · line 721 · raw

@+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> List<&2, String>

the texts of the package the walk made, none while there is none

def hashes source · line 725 · raw

@+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> List<&2, String>

every 0x name the package's files import, once each

def nvs source · line 729 · raw

@+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> List<&2, String>

every <name>@<version> they import, once each

def any source · line 733 · raw

@xs:List<&2, String> -> Bool

whether a list holds anything

def parsed.of source · line 742 · raw

@got:Maybe<&2, String> -> 0x9b437420348c999bf7a583a0fe7a67f5/src/ledger/manifest.Read

the ledger read, a bad one when there is none; the planner reaches this stage only past a ledger that parsed

def parsed source · line 750 · raw

@world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> 0x9b437420348c999bf7a583a0fe7a67f5/src/ledger/manifest.Read

the World's ledger, read

def hub source · line 754 · raw

@world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> String

the hub the ledger names, bend's own when it names none

def deps.of source · line 758 · raw

@got:0x9b437420348c999bf7a583a0fe7a67f5/src/ledger/manifest.Read -> List<&2, 0x9b437420348c999bf7a583a0fe7a67f5/src/ledger/manifest.Dep>

the dependencies the ledger records

def deps source · line 767 · raw

@world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> List<&2, 0x9b437420348c999bf7a583a0fe7a67f5/src/ledger/manifest.Dep>

the dependencies the World's ledger records

def lock.told source · line 771 · raw

@got:0x9b437420348c999bf7a583a0fe7a67f5/src/tool/world.Answer -> String

the lock's text, "" when there is none or it was not read

def lock.answer source · line 778 · raw

@got:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.Answer -> String

def lock.of source · line 785 · raw

@got:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.Heard -> String

def lock source · line 793 · raw

@+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> String

ez.lock.toml as the planner was given it

def names source · line 798 · raw

@+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> List<&2, 0x9b437420348c999bf7a583a0fe7a67f5/src/lock/lock.Name>

every name the lock resolves, then every one the ledger records with the hash it named when it was added

def probes.hash source · line 802 · raw

@hs:List<&2, String> -> List<&2, Probe>

each 0x name as the hub is asked about it

def probes.name source · line 810 · raw

@+ns:List<&2, 0x9b437420348c999bf7a583a0fe7a67f5/src/lock/lock.Name> -> @vs:List<&2, String> -> List<&2, Probe>

each name, with the hash the lock or the ledger resolves it to

def probes source · line 818 · raw

@+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> List<&2, Probe>

every hub package the package imports, as the hub is asked about it

def probe.url source · line 822 · raw

@+hub:String -> @one:Probe -> String

the url the hub is asked

def probe.ask source · line 830 · raw

@+hub:String -> @one:Probe -> 0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.Ask

the question: a GET of that url

def probe.asks source · line 834 · raw

@+hub:String -> @ps:List<&2, Probe> -> List<&2, 0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.Ask>

the questions for a list of them

def probe.word source · line 842 · raw

@one:Probe -> String

the import, as the package's files write it

def origin.say source · line 850 · raw

@src:0x9b437420348c999bf7a583a0fe7a67f5/src/ledger/manifest.Source -> String

where the ledger says a dependency comes from

def dep.say source · line 860 · raw

@item:0x9b437420348c999bf7a583a0fe7a67f5/src/ledger/manifest.Dep -> String

a dependency as a refusal names it: its key and its origin

def dep.is.go source · line 866 · raw

@one:Probe -> @+hash:String -> @src:0x9b437420348c999bf7a583a0fe7a67f5/src/ledger/manifest.Source -> Bool

whether the ledger's dependency is the one a probe is about: the same hash, or for a name, the same <name>@<version> or the hash it resolved to

def dep.is source · line 874 · raw

@one:Probe -> @item:0x9b437420348c999bf7a583a0fe7a67f5/src/ledger/manifest.Dep -> Bool

def dep.find.pick source · line 878 · raw

@hit:Bool -> @item:0x9b437420348c999bf7a583a0fe7a67f5/src/ledger/manifest.Dep -> @rest:(@_:Unit -> String) -> String

def dep.find source · line 886 · raw

@+one:Probe -> @ds:List<&2, 0x9b437420348c999bf7a583a0fe7a67f5/src/ledger/manifest.Dep> -> String

the first dependency the ledger records for a probe, said, "" for none

def who.of source · line 895 · raw

@+word:String -> @+dep:String -> String

the import a refusal names, with the dependency key and origin the ledger records for it when it records one

def who source · line 899 · raw

@+one:Probe -> @ds:List<&2, 0x9b437420348c999bf7a583a0fe7a67f5/src/ledger/manifest.Dep> -> String

a probe as a refusal names it

def absent source · line 911 · raw

@+text:String -> Bool

what the hub answers for a url it has nothing at: status 404, as Web.get says it

def why.absent source · line 915 · raw

@+who:String -> String

the line for a package the hub does not have

def why.unasked source · line 919 · raw

@+who:String -> @+text:String -> String

the line for one the hub could not be asked about

def seen.miss source · line 925 · raw

@gone:Bool -> @+text:String -> @+who:String -> Seen

a GET that did not come back 200: the hub does not have it, or it could not be asked. Neither is the hub having it, so both refuse, and nothing is sent on a guess.

def seen.hash source · line 934 · raw

@ok:Bool -> @+hash:String -> @+text:String -> @+who:String -> Seen

a manifest the hub served for a 0x name: the package is there when the manifest hashes to the name, as ez lock checks it

def why.named source · line 943 · raw

@+got:String -> @+want:String -> @+who:String -> String

why a name the hub answered is not the package imported

def seen.named.go source · line 951 · raw

@good:Bool -> @+got:String -> @+want:String -> @+who:String -> Seen

a name the hub resolved: the package is there when the hub names a 0x name by it, and the one the lock resolved it to when the lock resolved it

def seen.named source · line 958 · raw

@+got:String -> @+want:String -> @+who:String -> Seen

def seen.name source · line 963 · raw

@ok:Bool -> @+want:String -> @+text:String -> @+who:String -> Seen

a name asked of the hub, answered

def seen.ran source · line 971 · raw

@one:Probe -> @ok:Bool -> @+text:String -> @+who:String -> Seen

a probe's GET answered: whether it came back 200, and what it said

def seen.answer source · line 978 · raw

@one:Probe -> @got:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.Answer -> @+who:String -> Seen

def seen.heard source · line 985 · raw

@got:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.Heard -> @one:Probe -> @+who:String -> Seen

def seen source · line 993 · raw

@+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> @+hub:String -> @+ds:List<&2, 0x9b437420348c999bf7a583a0fe7a67f5/src/ledger/manifest.Dep> -> @+one:Probe -> Seen

where a probe stands in a World

def tally.unasked source · line 1001 · raw

@one:Probe -> @sofar:Tally -> Tally

a probe still to ask about, added

def tally.offhub source · line 1006 · raw

@line:String -> @sofar:Tally -> Tally

a line for a probe off the hub, added

def tally.put source · line 1011 · raw

@standing:Seen -> @one:Probe -> @sofar:Tally -> Tally

one probe's standing added to the rest's

def tally source · line 1021 · raw

@+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> @+hub:String -> @+ds:List<&2, 0x9b437420348c999bf7a583a0fe7a67f5/src/ledger/manifest.Dep> -> @ps:List<&2, Probe> -> Tally

every probe'standing standing

def why.hub source · line 1037 · raw

@+hub:String -> @lines:List<&2, String> -> String

why a package with imports off the hub is refused: every one of them, and the hub that was asked

def hubbed.offs source · line 1042 · raw

@offs:List<&2, String> -> @+hub:String -> Hubbed

def hubbed.go source · line 1051 · raw

@open:List<&2, Probe> -> @offs:List<&2, String> -> @+hub:String -> Hubbed

the tally read: every probe asked before any is judged, then every one off the hub named at once

def hubbed.of source · line 1058 · raw

@sofar:Tally -> @+hub:String -> Hubbed

def hubbed source · line 1063 · raw

@+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> Hubbed

where the World's hub imports stand

def on.hub.v source · line 1068 · raw

@got:Hubbed -> Bool

whether they are all on the hub

def on.hub source · line 1077 · raw

@+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> Bool

def why.dirty source · line 1091 · raw

@+text:String -> String

what a refusal for a dirty tree says. The lines git printed come with it, since the next question is always which file.

def why.stray source · line 1097 · raw

@+path:String -> String

what a refusal for a file git does not track says

def decide.agreed source · line 1102 · raw

@ok:Bool -> @+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> Verdict

the upload answered: bend's answer agrees, or the command refuses

def decide.upload source · line 1110 · raw

@got:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.Heard -> @+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> Verdict

the upload, asked for once every check before it passed

def decide.hub source · line 1120 · raw

@on:Hubbed -> @+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> Verdict

the hub imports: every one on the hub goes on to the upload, one still to ask about is asked, and any other refuses, sending nothing (laws/PublishNeedsDepsOnHub.bend)

def decide.lock source · line 1131 · raw

@need:Bool -> @got:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.Heard -> @+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> Verdict

the lock, read first when the package imports a package by name, since it holds the hash the name was resolved to

def decide.kept source · line 1143 · raw

@kept:Kept -> @+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> Verdict

every file of the package tracked, or the first that is not refused

def decide.walk source · line 1155 · raw

@got:0x9b437420348c999bf7a583a0fe7a67f5/src/pkg/pkg.Walked -> @+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> Verdict

the walk: a package, a file it asks for, or why there is none

def decide.clean source · line 1165 · raw

@bad:Bool -> @+text:String -> @+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> Verdict

a status that named a path refuses, and nothing is read or sent

def decide.status source · line 1173 · raw

@said:Status -> @+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> Verdict

git status: asked, answered, or failed

def decide.led source · line 1183 · raw

@ledger:Led -> @+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> Verdict

the ledger: an entry, or why there is none

def decide source · line 1191 · raw

@+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> Verdict

where a World stands

def called.of source · line 1199 · raw

@got:Named -> @+hash:String -> String

what the import line names the package by: its <name>@<version> when it was published under one, its hash otherwise

def called source · line 1209 · raw

@+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> String

what a World's import line names the package by

def made source · line 1216 · raw

@+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> 0x9b437420348c999bf7a583a0fe7a67f5/src/lock/plan.Plan

what a publish that agreed says: the hash ez computed, then the import line for the entry's path inside the package (G.import.line, which ez add prints too), by the name the package was published under when it has one. It writes nothing.

def plan.v source · line 1222 · raw

@verdict:Verdict -> @+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> 0x9b437420348c999bf7a583a0fe7a67f5/src/lock/plan.Plan

the plan for where a World stands. One that still asks is a World the interpreter did not finish, and is refused rather than guessed at.

def plan source · line 1233 · raw

@+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> 0x9b437420348c999bf7a583a0fe7a67f5/src/lock/plan.Plan

ez publish over a World

def step.v source · line 1242 · raw

@verdict:Verdict -> @+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> Step

the step for where the World stands

def step source · line 1252 · raw

@+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> Step

what the interpreter does next on a World

def succeeds.plan source · line 1259 · raw

@pl:0x9b437420348c999bf7a583a0fe7a67f5/src/lock/plan.Plan -> Bool

whether a plan ends in success

def succeeds source · line 1268 · raw

@+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> Bool

whether ez publish succeeds on a World

def refuses source · line 1272 · raw

@+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> Bool

whether ez publish refuses on a World

def stops.v source · line 1276 · raw

@verdict:Verdict -> Bool

whether a verdict refuses outright: it asks nothing and sends nothing

def stops source · line 1286 · raw

@+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> Bool

whether ez publish refuses a World outright, asking nothing more

def is.upload source · line 1290 · raw

@ask:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.Ask -> Bool

whether a question is the upload

def any.upload source · line 1304 · raw

@asks:List<&2, 0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.Ask> -> Bool

whether any of these questions is the upload

def sends.v source · line 1314 · raw

@verdict:Verdict -> Bool

whether a verdict is at the upload or past it: it asks for the upload, or has its answer and goes on

def sends source · line 1324 · raw

@+world:0x9b437420348c999bf7a583a0fe7a67f5/src/pub/world.World -> Bool

whether ez publish gets as far as the upload on a World