tools.deploy.backend: fix vocab manifest parse
We were absent-mindedly passing the VOCABS: line off as a vocab name itself. vocabs.loader doesn't put up with that anymore.db4
parent
c731dc6edb
commit
4c197ec6e6
|
@ -113,10 +113,11 @@ DEFER: ?make-staging-image
|
||||||
] bind ;
|
] bind ;
|
||||||
|
|
||||||
: parse-vocab-manifest-file ( path -- vocab-manifest )
|
: parse-vocab-manifest-file ( path -- vocab-manifest )
|
||||||
utf8 file-lines
|
utf8 file-lines [ "empty vocab manifest!" throw ] [
|
||||||
dup first "VOCABS:" =
|
unclip-slice "VOCABS:" =
|
||||||
[ { "LIBRARIES:" } split1 vocab-manifest boa ]
|
[ { "LIBRARIES:" } split1 vocab-manifest boa ]
|
||||||
[ "invalid vocab manifest!" throw ] if ;
|
[ "invalid vocab manifest!" throw ] if
|
||||||
|
] if-empty ;
|
||||||
|
|
||||||
: make-deploy-image ( vm image vocab config -- manifest )
|
: make-deploy-image ( vm image vocab config -- manifest )
|
||||||
make-boot-image
|
make-boot-image
|
||||||
|
|
Loading…
Reference in New Issue