devcontainers / devcontainers/cli

`containerEnv` input validation

Đang mở
#644 1 bình luận 1 reaction 0 người được giao Xem trên GitHub
feature-request
Ngôn ngữ chính
TypeScript
Star
3k
Fork
457
Merge trung bình
13 giờ 17 phút
Pull request đã merge (30 ngày)
6

Mô tả

Debugged a fun issue recently with a `containerEnv` similar to below:

```jsonc
"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](https://github.com/devcontainers/cli/blob/main/src/spec-common/dotfiles.ts#L74).

The CLI would benefit from additional input validation to make such typos easier to debug.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.