jdx / mise

dev tools, env vars, task runner
https://mise.jdx.dev
MIT License
9.38k stars 262 forks source link

nested alternate groups are not allowed #2203

Open sirenkovladd opened 4 months ago

sirenkovladd commented 4 months ago

Describe the bug Cannot use env in outputs

To Reproduce

[env]
PROJECT_VENV_FOLDER = ".venv"
_.python.venv = "{{env.PROJECT_VENV_FOLDER}}"

[tasks.install_flake]
run = ["touch .mise/task/install-flake", "pip install flake8"]
sources = [".mise/task/install-flake"]
outputs = ["{{env.PROJECT_VENV_FOLDER}}/bin/flake8"]
❯ mise r install_flake
[WARN] (16) mise::cli::run: [src/cli/run.rs:437] sources_are_fresh: error parsing glob '{{env.PROJECT_VENV_FOLDER}}/bin/flake8': nested alternate groups are not allowed
[install_flake] $ touch .mise/task/install-flake
[install_flake] $ pip install flake8

Expected behavior

❯ mise r install_flake
[install_flake] sources up-to-date, skipping

mise doctor output

No warnings found
No problems found

Additional context Add any other context about the problem here. Consider running mise with --debug or --trace for extra debug info.