Skip to content

Conversation

rrjjvv and others added 4 commits May 21, 2025 16:36
A variable with a type but no default value or override resulted in an
empty string.  This matches the legacy behavior of untyped variables,
but does not make sense when using types (an empty string is itself a
type violation for everything except `string`).  All variables defined
with a type but with no value are now a typed `null`.

A variable explicitly typed `any` was previously treated as if the
typing was omitted; with no defined value or override, that resulted in
an empty string.  The `any` type is now distinguished from an omitted
type; these variables, with no default or override, are also `null`.

In other respects, the behavior of `any` is unchanged and largely
behaves as if the type was omitted.  It's not clear whether it should be
 supported, let alone how it should behave, so these tests were removed.
It's being treated as undefined behavior.

Signed-off-by: Roberto Villarreal <[email protected]>
(cherry picked from commit 3c0f5c5)
Signed-off-by: CrazyMax <[email protected]>
(cherry picked from commit 291c353)
This documents the variable typing introduced in docker#3167.

Signed-off-by: Roberto Villarreal <[email protected]>
(cherry picked from commit cfeca91)
Signed-off-by: CrazyMax <[email protected]>
(cherry picked from commit a11bb49)
@crazy-max crazy-max merged commit d0e5e86 into docker:v0.24 May 21, 2025
141 checks passed
@crazy-max crazy-max deleted the 0.24-picks-0.24.0 branch May 21, 2025 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants