P0020
Env.secret asked for a variable the environment does not set. Its signature has no room for a missing secret, and running on with a stand-in such as an empty one could let an empty password through. Spans the call.
Machine-applicable fix: none.
Example
This program fails with P0020.
fn main(env: Env) {
let key = env.secret("API_KEY")
}
Fixed
The same program, fixed.
fn main(env: Env) {
let key = env.get("API_KEY")
}
Listed in the runtime notes. oskac explain P0020 prints this entry offline.