Skip to content

Resolve environment variable in task inputs/outputs #4940

@AntoinePrv

Description

@AntoinePrv

Problem description

with this task

[feature.cmd.tasks.configure]
args = ["preset"]
cmd = "cmake -B build/$PIXI_ENVIRONMENT_NAME/{{ preset }} -G Ninja --preset {{ preset }}"
inputs = ["**/CMakeLists.txt", "**/*.cmake.in", "cmake/"]
outputs = ["build/$PIXI_ENVIRONMENT_NAME/{{ preset }}/CMakeCache.txt"]

I get the warning

 WARN No files matched the output globs for task 'configure'
 WARN Output globs: `build/$PIXI_ENVIRONMENT_NAME/dev-neon/CMakeCache.txt`

it would be nice if that environment variable could be resolved.

Full recipe: https://gist.github.com/AntoinePrv/27b6cc763532d971e8db6f588ef4edca

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions