cortesi / modd

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

Running indir with forward paths throws an error #85

Open ardikaveh opened 4 years ago

ardikaveh commented 4 years ago

trying add indir like so

{ indir: ./cmd/seo }

and I get the following error

19:12:30: Error running prep: fork/exec /usr/local/bin/modd: no such file or directory

this is on a mac.

wader commented 4 years ago

Can you post the full modd.conf? running modd from modd?

ardikaveh commented 4 years ago

Have this **/*.qtpl{ prep: ../../bin/goz generate ./web/seo/... daemon +sigterm: go run ./cmd/seo/* }

would like this **/*.qtpl{ indir: ./cmd/seo prep: ../../bin/goz generate ./web/seo/... daemon +sigterm: go run * }

You can put any valid forward path it will throw the error

I have a modd.conf and run modd from the same folder of the modd.conf

charlesmarvin commented 4 years ago

@ardikaveh Looks like this could be related to issue https://github.com/cortesi/modd/issues/69

Have you tried running the same config using master? If you are installing modd via Homebrew you can do the following:

% brew unlink modd
% brew install -HEAD modd
Voles commented 4 years ago

@charlesmarvin thanks for this! You're solution helped me to resolve the issue @ardikaveh had.

There's a small typo, a dash is missing. The following works:

brew unlink modd
brew install --HEAD modd