defenseunicorns / maru-runner

The Unicorn Task Runner
Apache License 2.0
8 stars 0 forks source link

Included task variable defaults don't carry into parent tasks #121

Open Racer159 opened 2 weeks ago

Racer159 commented 2 weeks ago

Environment

Device and OS: popOS 22.04 App version: v0.2.1 Kubernetes distro being used: N/A Other: N/A

Steps to reproduce

  1. Create two task files like the below:

tasks.yaml:

includes:
  - incl: ./include.yaml

include.yaml:

variables:
  - name: ECHO
    default: kitteh

tasks:
  - name: echo
    actions:
      - cmd: echo $ECHO
  1. Run the included task with maru run incl:echo

Expected result

kitteh is echoed

Actual Result

Nothing is echoed

Visual Proof (screenshots, videos, text, etc)

image

Severity/Priority

Medium - --set still works but this is likely not expected behavior for defaults

Additional Context

Currently affecting uds-common lula lint task: https://github.com/defenseunicorns/uds-common/pull/147