Skip to content

Envvar defined in task is lost when included as a sub-task #98

@tbnguyen1407

Description

@tbnguyen1407
  • I have the latest version of mani
  • I have searched through the existing issues

Info

  • OS

    • Linux
    • Mac OS X
    • Windows
    • other
  • Shell

    • Bash
    • Zsh
    • Fish
    • Powershell
    • other
  • Version: 0.30.1

Problem / Steps to reproduce

Envvar ($ABC) defined in task (task1) is lost when included as a sub-task of another task (task2)

~  mani.yaml ~
projects:
  dummy:
    path: .
tasks:
  task1:
    cmd: echo $ABC
    env:
      ABC: def
  task2:
    commands:
      - task: task1
mani run task1 --all  ## output "def"
mani run task2 --all  ## output ""

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions