You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During the variable substitution, if a missing variable was followed
by an existing one, the empty "outerErr" variable overwrote the previous
non-empty variable.
Unlike with Docker Compose v1, the first found error did not guarantee
that an actual error would be thrown.
Example which would have run before the fix even though var1 is not defined:
```yaml
services:
bash:
image: bash:5.0.18-alpine3.15
environment:
var12: "_ ${var1:?Error1} _ ${var2:?Error2} _ "
command:
- env
```
```bash
```
This change also means that, if multiple variables are missing in one string, the first one will be reported by Docker Compose
Signed-off-by: Ákos Takács <[email protected]>
0 commit comments