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

Dependency run twice #1946

Closed
alexec opened this issue Dec 11, 2024 · 1 comment
Closed

Dependency run twice #1946

alexec opened this issue Dec 11, 2024 · 1 comment

Comments

@alexec
Copy link

alexec commented Dec 11, 2024

  • Task version: v3.40.1
  • Operating system: Linux
  • Experiments enabled: None
# https://taskfile.dev

version: '3'

tasks:
  install-kind:
    cmds:
      - curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64
      - chmod +x ./kind
      - sudo mv ./kind /usr/local/bin/kind
    status:
      - test -f /usr/local/bin/kind

  config-kubectl-completion:
    deps: [ install-kind ]
    cmds:
      - kubectl completion bash > sudo tee /etc/bash_completion.d/kubectl
    status:
      - test -f /etc/bash_completion.d/kubectl

  install-helm:
    cmds:
      - curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
    status:
      - test -f /usr/local/bin/helm

  install-eiamcli:
    cmds:
      - wget -O /tmp/eiamcli.zip https://artifactory.a.intuit.com/nexus/content/repositories/IBP.Intuit-Releases/com/intuit/ebs/eiam/eiamCli-linux/3.0.5/eiamCli-linux-3.0.5.zip
      - cd /tmp && unzip -o eiamcli.zip && cd eiamCli-linux && sudo sh install.sh
    status:
      - test -f /usr/local/bin/eiamCli

  default:
    deps:
      - install-kind
      - config-kubectl-completion
      - install-helm
      - install-eiamcli

Note how config-kubectl-completion depends on install-kind, this is the output:

task: Task "install-eiamcli" is up to date
task: Task "install-helm" is up to date
task: Task "install-kind" is up to date
task: Task "install-kind" is up to date
task: Task "config-kubectl-completion" is up to date

Why is install-kind run twice. Should only be run once.

@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Dec 11, 2024
@alexec
Copy link
Author

alexec commented Dec 11, 2024

Ok. Must use run: once. Seems counter intuitive.

@alexec alexec closed this as completed Dec 11, 2024
@task-bot task-bot removed the state: needs triage Waiting to be triaged by a maintainer. label Dec 11, 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

2 participants