Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global vars evaluation doesn't work when calling task from another task. #1310

Open
Thomy90 opened this issue Aug 22, 2023 · 0 comments
Open
Labels
state: needs triage Waiting to be triaged by a maintainer.

Comments

@Thomy90
Copy link

Thomy90 commented Aug 22, 2023

Hi guys,
I found another bug.

After calling call-default task in example below.

version: '3'

vars:
  FOO: '{{ default "foo" .FOO}}'
  BAZ: '{{.FOO}}'

tasks:
  default:
    cmds:
      - echo {{.BAZ}}

  call-default:
    cmds:
      - task: default
        vars:
          FOO: 'new-foo'

Expected output:

task: [default] echo foo
new-foo

Actual output:

task: [default] echo foo
foo
  • Task version: 3.28.0
  • Operating system: Ubuntu 20.04.6
  • Experiments enabled: no
@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: needs triage Waiting to be triaged by a maintainer.
Projects
None yet
Development

No branches or pull requests

2 participants