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

Deduplicate depends #261

Open
kindermax opened this issue Jul 9, 2024 · 0 comments
Open

Deduplicate depends #261

kindermax opened this issue Jul 9, 2024 · 0 comments

Comments

@kindermax
Copy link
Collaborator

kindermax commented Jul 9, 2024

Problem:

If commands have duplicate nested depends we will execute them all, for example:

commands:
  build-image: docker build -f Dockerfile .
  build-all:
    depends: [build-image]

  run:
    depends: [build-image, build-all]
   cmd: npm run dev

In the example above we will run build-image twice - once run:build-image and second run:build-all:build-image

Solution:

We can try to de-duplicate depends on config parse step since we know want command chain will be executed.

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

1 participant