Skip to content

tasks dependencies should permit env var modifications #5100

@jdx

Description

@jdx

similar to how args can be provided, e.g.:

[tasks.test]
run = "test.sh"
[tasks.test-all]
depends = [
  {task = "test", env = {PROP = "a"}},
  {task = "test", env = {PROP = "b"}},
]

alternate syntax:

[tasks.test]
run = "test.sh"
[tasks.test-all]
depends = ["PROP=a test", "PROP=b test"]

alternate involves parsing and I feel is less obvious so I think I like it less. Also weird it's {env} {task} when you would actually need {env} mise run {task} if it was actually bash (which it isn't)

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