cortesi / modd

A flexible developer tool that runs processes and responds to filesystem changes
MIT License
2.79k stars 130 forks source link

no de-duplication of triggered items #130

Open AndrewSav opened 9 months ago

AndrewSav commented 9 months ago

I can see that this repo is not being maintained, but I'll leave it here nonetheless, in case someone takes over in a fork, or the owner returns.

On Windows create modd.conf like this:

@shell = powershell

a b c {
  prep: $a = '@mods'; $a -split " " | Write-Host
}

Create files a, b and c in the same folder as modd.conf. Run modd:

"./a"
"./b"
"./c"
"./a"
"./b"
"./c"
"./a"
"./b"
"./c"

All files are getting triggered 3 times, and it will get worse when you add more files. I do not believe this is platform specific, but I observed this on Windows.