Skip to content

Deduplicate depends #261

@kindermax

Description

@kindermax

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions