pub async fn modules(root: String, inbox: Receiver<Val>, back: Sender<Event>)Expand description
('host modules): the impure half of the module system.
('fetch url ref) (rev path) - the revision ref names and
where under the root its source now is
The only thing in the tree that reaches the network. Registered only by
naj --lock, so an ordinary program cannot reach it: what a program may do
is what the world it runs in registered. Resolution never comes here - it
reads the store through files - which is what lets a program run
offline.
A revision is a content address, so a store entry never changes and an
existing one is answered without touching the network. .git is removed
afterwards, since nix populates the same layout with a plain source tree.