Skip to content
Playground(another site)

bynk.suite.duplicate_env

Error An env { … } clause gives the same name twice at one scope (a suite's env clauses, or one case's); a case's env may override a suite's name, but not repeat its own.

An env clause gives a variable one value in its scope, so naming it twice in the same suite or the same case leaves two values and no way to choose. Keep one. A case's own env may still override a name its suite gives; only a repeat within one scope is refused.

Example

env {
MODE = "fake"
MODE = "live" // ✗ `MODE` is already given in this suite
}
env {
MODE = "fake"
REGION = "eu" // ✓ one value per name
}

In the Book

See also

  • The grammar rule it governs: env_clause.
  • Every code in its category, Suites and cases, on the diagnostic index.
  • bynk explain bynk.suite.duplicate_env shows the same from the installed toolchain, without a network.