Skip to content

Can't access env vars defined in Justfile from submodule #2812

@hxeli

Description

@hxeli

It seems that version 1.42 introduced a change #2810 that does not allow submodules to access env variables defined in the main Justfile.

Justfile

mod test './test.justfile'

export a := "a"

test.justfile

test:
    echo $a

Running just test fails because a is unbound variable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions