Skip to content

Variables in .env file no longer evaluated #561

@MathieuGilbert

Description

@MathieuGilbert

Something changed from 0.76.0 to 0.78.0. For an .env file like:

PIES=yummy
CAKES=$PIES

The loaded values are:

ENV['CAKES'] == "yummy" in 0.76.0
ENV['CAKES'] == "$PIES" in 0.78.0

Dotenv (1.0.2) seems to be doing its job properly, but Dotenv.load doesn't overwrite existing keys, which already have the un-evaluated variables from Foreman. I've only looked into it far enough to see at this point: https://github.com/ddollar/foreman/blob/master/lib/foreman/cli.rb#L88, engine.env is correct in 0.76.0, but incorrect in 0.78.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions