Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include multiple directories #69

Open
kabessao opened this issue Oct 4, 2021 · 2 comments
Open

include multiple directories #69

kabessao opened this issue Oct 4, 2021 · 2 comments

Comments

@kabessao
Copy link

kabessao commented Oct 4, 2021

The project I'm working on has important files two folders back from where the main.go file is, so it would be nice to have something like -include-dir="../../core" to be able to monitor any changes on these files as well, since we work with them a lot.

@reves
Copy link

reves commented Oct 29, 2022

Such a feature is really needed.

I've tried another workaround using a folder symlink, but as i saw later in the docs filepath.WalkDir does not follow symbolic links. By the way, if someone is interested in setting -directory= to a folder symlink, it will work as expected.

At the moment, I solved my problem with nodemon (requires node.js & npm):

#!/bin/bash
nodemon \
    -e go \
    --watch . \
    --watch "../../core" \
    --exec "go run ."

@githubnemo
Copy link
Owner

Have you tried passing multiple -directory parameters?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants