Skip to content

Add a warning/ error if there is whitespace around the '=' in environment variables #12602

@will-larkin

Description

@will-larkin

Description

When environment variables using the mapping syntax are used in compose, whitespace around the equals character causes issues, so it would be nice to have some kind of warning, or an error if it is detected.

Example:

services: 
  web:
    build: .
    ports:
      - "8000:5000"
    environment:
      - DEBUG=true   # Correct
      - DEBUG = true # Causes issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions