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

task requires vars doesnt exit if var is not there #1453

Closed
xsteadfastx opened this issue Dec 31, 2023 · 2 comments
Closed

task requires vars doesnt exit if var is not there #1453

xsteadfastx opened this issue Dec 31, 2023 · 2 comments

Comments

@xsteadfastx
Copy link

i try to check for a variable to be set before running the task. this doesnt work

example (the only Taskfile in that directory and with just that content):

version: "3"

tasks:
  foo:
    cmds:
      - echo before {{.BLA}} after
    run: once
    requires:
      vars:
        - BLA

if i run it it will just echos the blank variable

$ task foo
task: [foo] echo before  after
before after
  • Task version: Task version: v3.23.0 (h1:egOOrya0biMnrV1W8RSEo2pviHMGTtBmy4VqxUYfcyk=)
  • Operating system: linux ubuntu
  • Experiments enabled: -
@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Dec 31, 2023
@andreynering
Copy link
Member

Hi @xsteadfastx,

As also said on Discord, this feature was only added on v3.27.0.

Please upgrade to the lastest version.

@andreynering andreynering closed this as not planned Won't fix, can't repro, duplicate, stale Dec 31, 2023
@task-bot task-bot removed the state: needs triage Waiting to be triaged by a maintainer. label Dec 31, 2023
@andreynering andreynering added the type: question Further information is requested. label Dec 31, 2023
@xsteadfastx
Copy link
Author

@andreynering sorry for that issue then. thanks for your awesome software :) i love to use it

@pd93 pd93 removed the type: question Further information is requested. label Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants