mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-09-21 07:28:30 +03:00
Publish: Add positive assertion for publish-info
Publish's %serve command makes builds for notes even if the publish-info file is missing. It now crashes the build if the file is missing with a one-line ?> asserting that the file is found in the list of paths associated with the collection.
This commit is contained in:
parent
806871de4e
commit
645e60c55d
@ -1251,6 +1251,7 @@
|
||||
[~ this]
|
||||
=/ files=(list path)
|
||||
.^((list path) %ct (weld our-beak /web/publish/[coll.act]))
|
||||
?> ?=(^ (find [/web/publish/[coll.act]/publish-info]~ files))
|
||||
=/ all=[moves=(list move) builds=(set wire)]
|
||||
%+ roll files
|
||||
|= [pax=path out=[moves=(list move) builds=(set wire)]]
|
||||
|
Loading…
Reference in New Issue
Block a user