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

ignore_error is not working with task and preconditions #1837

Open
ccxuy opened this issue Sep 25, 2024 · 1 comment
Open

ignore_error is not working with task and preconditions #1837

ccxuy opened this issue Sep 25, 2024 · 1 comment
Labels
state: needs triage Waiting to be triaged by a maintainer.

Comments

@ccxuy
Copy link

ccxuy commented Sep 25, 2024

  • Task version: Task version: v3.38.0 (h1:O7kgA6BfwktXHPrheByQO46p3teKtRuq1EpGnFxNzbo=)
  • Operating system: Ubuntu 2204
  • Experiments enabled: No
  empty:
    vars:
      a:
        sh: echo 1
    cmds:
      - echo {{.a}}
      - task: none
        ignore_error: true
        vars:
          a: 1
      - echo {{.a}}
  none:
    preconditions:
      - sh: '[ "{{.a}}" = "2" ]'
    cmds:
      - exit 1
> task empty
task: [empty] echo 1
1
task: [ "1" = "2" ] failed
task: Failed to run task "empty": task: precondition not met
Failed at 192: task empty
@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Sep 25, 2024
@ccxuy
Copy link
Author

ccxuy commented Sep 25, 2024

similar issue on #855

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