cli
cli copied to clipboard
`containerEnv` input validation
Debugged a fun issue recently with a containerEnv similar to below:
"containerEnv": {
"BUNDLE_RUBYGEMS__PKG__GITHUB__COM`": "${localEnv:GITHUB_USER}:${localEnv:GITHUB_TOKEN}"
}
Notice the stray backtick character at the end of the environment key 😅
Such an environment key causes a failure when setting up dotfiles.
The CLI would benefit from additional input validation to make such typos easier to debug.
It looks like patternProperties would work: https://github.com/devcontainers/spec/commit/ff733840e80b302ab3d0d3ea15e81d6c3c5190f7 👍