Skip to main content

check_env_binding_clash

Function check_env_binding_clash 

Source
pub fn check_env_binding_clash(
    decl: &SuiteDecl,
    bindings: &BTreeMap<String, String>,
    errors: &mut Vec<CompileError>,
)
Expand description

bynk.suite.env_binding_clash: at system, an env entry lands on each participant’s Worker env, so a name one of them already binds (a Service Binding, KV namespace or Durable Object namespace), or a key the harness sets there itself (a call edge’s key, a foreign caller’s secret), is refused. bindings maps each such name to what holds it, as a phrase (“a binding of shop.ledger’s Worker”).