Skip to content

v1.10.1

Choose a tag to compare

@github-actions github-actions released this 02 Dec 08:49
· 13 commits to main since this release
v1.10.1
5824be0

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 as true while 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" # note is
      true to 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_FILE list that starts in another directory. With
      COMPOSE_FILE=sub/base.yml in ./.env, Compose applies what ./.env
      sets, ahead of sub/.env. compose-lint read sub/.env alone. It now
      reads both in Compose's order, and the header names both.
    • A colon for the separator. PRIV: true is PRIV=true to 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.py asks Compose again wherever one is
    installed.