omio-labs / myke

make with yaml: development tasks made simple with golang, yaml and many ingredients
https://omio-labs.github.io/myke
MIT License
70 stars 16 forks source link

Discover should include a myke config only once #102

Open pkuczynski opened 6 years ago

pkuczynski commented 6 years ago

I have a dir0/myke.yml config which references few others:

discover:
  - ../dir1
  - ../dir2
  - ../dir3

However dir1 also discovers dir2:

discover:
  - ../dir2

In such scenario, I will see duplicated dir2 entries when I run myke in dir0.

I would expect that discovery skips configs which have been already discovered...