1
1
mirror of https://github.com/urbit/shrub.git synced 2024-12-30 15:44:03 +03:00
shrub/pkg/landscape/ted/glob.hoon
2021-07-18 23:11:45 +03:00

19 lines
430 B
Plaintext

/- spider, glob
/+ strandio
=, strand=strand:spider
^- thread:spider
|= arg=vase
=/ m (strand ,vase)
^- form:m
=+ !<([~ hash=@uv] arg)
=/ url "https://bootstrap.urbit.org/glob-{(scow %uv hash)}.glob"
;< =glob:glob bind:m
%+ (retry:strandio ,glob:glob) `5
=/ n (strand ,(unit glob:glob))
;< =cord bind:n (fetch-cord:strandio url)
%- pure:n
%- mole
|.
;;(=glob:glob (cue cord))
(pure:m !>(glob))