def check
near-v-framework@0.4.0.0 · domain/architecture/system/container/effects.bend:53
import near-v-framework@0.4.0.0/domain/architecture/system/container/effects.bend as Effects
import Base
import near-v-framework@0.4.0.0/domain/architecture/system/plan/type.bend as P
import near-v-framework@0.4.0.0/domain/architecture/environment/external/type.bend as Ex
import near-v-framework@0.4.0.0/domain/architecture/system/container/type.bend as Ct
import near-v-framework@0.4.0.0/domain/architecture/system/container/ops.bend as O
53def check(+c: Ct.Container, +root: String, +xs: List<&2, Ex.External>, +go: List<&2, String>) -> IO(List<&2, P.Step>):
54 do IO<List<&2, P.Step>>:
55 +deps : List<&2, String> <- dependencies(root, O.source_of(c), go)
56 exts : List<&2, String> <- extensions(root, O.source_of(c))
57 +what : String = "stack " ++ O.key_of(c)
58 return or_current(what, List.append(&2, P.Step, blocked(what, O.stack_missing(c, deps), " is declared but not a dependency"),
59 List.append(&2, P.Step, blocked(what, O.languages_missing(c, exts), " files have no declared language"),
60 blocked(what, O.sdk_missing(c, xs, deps), " is the SDK of a model API it calls but not a dependency"))))