devcontainers / devcontainers/cli

Variable substitution does not allow default values containing a colon

Open
#883 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
3k
Forks
457
Avg merge
13h 17m
Merged PRs (30d)
6

Description

The current implementation does not support default values in localEnv or containerEnv substitution that include a colon.

Example:
```
"WEBSITE_URL": "${localEnv:WEBSITE_URL:https://example.com"
```

Current behavior: If `$WEBSITE_URL` is not present, the variable is just set to `https`

Expected behavior: If `$WEBSITE_URL` is not present, the variable should be set to `https://example.com`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.