Repository navigation
v1.10.1
Fixed
-
A variable now has the value Compose gives it in three cases where it
did not. In each, compose-lint graded a different value from the one
Compose deploys, so a setting supplied through a variable, such as
privileged: ${PRIV}, could deploy astruewhile the run passed with
nothing said. All three were measured against Compose 5.8.1 and are in
1.10.0. The first was confirmed back to 1.0.0.- A quoted value with a comment after it.
PRIV="true" # noteis
trueto Compose. compose-lint kept the quotes as part of the value
unless the line also ended with one. A quoted value now ends at its
closing quote, and what follows is read as Compose reads it: a comment
or a statement of its own. - A
COMPOSE_FILElist that starts in another directory. With
COMPOSE_FILE=sub/base.ymlin./.env, Compose applies what./.env
sets, ahead ofsub/.env. compose-lint readsub/.envalone. It now
reads both in Compose's order, and the header names both. - A colon for the separator.
PRIV: trueisPRIV=trueto Compose
and was skipped as a malformed line.
A single-quoted value with
\'in it is also read as Compose reads it.
The other direction is fixed by the same change: a value compose-lint
misread as set is no longer reported. ADR-026 is amended, and
tests/test_env_values_like_compose.pyasks Compose again wherever one is
installed. - A quoted value with a comment after it.