devcontainers / devcontainers/cli

Variable substitution does not allow default values containing a colon

Aperta
#883 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
TypeScript
Stelle
3k
Fork
457
Merge medio
13h 17m
PR unite (30g)
6

Descrizione

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`

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by tracing the localEnv and containerEnv substitution handling and reproduce the provided WEBSITE_URL example. Check how colon-separated default values are parsed. Done means an unset variable preserves the complete default value, including https://example.com, with regression coverage for the reported case.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
typescript
Ambito
cli
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.