gobblejs / gobble

The last build tool you'll ever need
333 stars 20 forks source link

Creating hardlinks to files triggers rebuild #129

Open IvanSanchez opened 7 years ago

IvanSanchez commented 7 years ago

I created https://github.com/gobblejs/gobble-hardlink today, and I'm hitting an unexpected problem.

Seems like creating a hardlink to a source file (any file in the watch list of any of the watch nodes) is considered by chokidar like a change of a watched source file. The result is an infinite loop when running gobble in watch mode.

Will try to debug the problem, and see if there's some extra chokidar options for this.

fskreuz commented 7 years ago

Looks like we stumbled across this one today https://github.com/ractivejs/ractive/pull/2943#issuecomment-303273645