def seed.walked

ezx@1.11.0.0 · src/ws/joint.bend:699

import ezx@1.11.0.0/src/ws/joint.bend as Joint
import Base
import ezx@1.11.0.0/src/pkg/pkg.bend as K
import ezx@1.11.0.0/src/lock/lock.bend as L
import ezx@1.11.0.0/src/lock/world.bend as LW

699# a member's package as the lock is to read it: fresh from the committed
700# tree, as a clone arrives, so the lock lays it under BEND_LIB
701def seed.walked(got: K.Walked, +hash: String, +path: String, +entry: String) -> List<&2, LW.Reply>:
702  match got:
703    case K.Walked{_h, _root, fs, +sums}:
704      [LW.Reply{LW.Pkg{hash, L.Member{path, entry}, ""},
705        LW.Got{LW.Clone{""}, K.manifest_of(sums), texts(sums, fs)}}]
706    case K.Asks{_at}:
707      []
708    case K.Refused{_why}:
709      []

Uses (10)

Used by (1)