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

for loop does not take effect in deps #1598

Closed
QianChenglong opened this issue Apr 17, 2024 · 1 comment
Closed

for loop does not take effect in deps #1598

QianChenglong opened this issue Apr 17, 2024 · 1 comment
Labels
state: awaiting response Waiting for issue author to respond.

Comments

@QianChenglong
Copy link

image
@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Apr 17, 2024
@pd93
Copy link
Member

pd93 commented Apr 26, 2024

@QianChenglong When opening issues, could you please provide the following information:

  • Task version
  • Operating system
  • Experiments enabled

Also, it would help us to track down the cause of your problem if you posted samples of your code rather than screenshots. Otherwise, we have to manually copy your Taskfiles from the image.


With the Taskfile below, looping over dependencies works fine in v3.36.0. Please note that this functionality was only added in v3.36.0, so if you are running a version prior to that, then this will not work.

version: 3

tasks:
  build:
    cmds:
      - echo {{.GOOS}} {{.GOARCH}}

  default:
    deps:
      - for: ["amd64", "arm64"]
        task: build
        vars:
          GOOS: linux
          GOARCH: "{{.ITEM}}"
    cmds:
      - for: ["amd64", "arm64"]
        task: build
        vars:
          GOOS: linux
          GOARCH: "{{.ITEM}}"

image

@pd93 pd93 added state: awaiting response Waiting for issue author to respond. and removed state: needs triage Waiting to be triaged by a maintainer. labels Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: awaiting response Waiting for issue author to respond.
Projects
None yet
Development

No branches or pull requests

3 participants