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

Watch multiple directories #97

Open
SJrX opened this issue May 9, 2023 · 0 comments
Open

Watch multiple directories #97

SJrX opened this issue May 9, 2023 · 0 comments

Comments

@SJrX
Copy link

SJrX commented May 9, 2023

Hi there,

So I have two go projects and the first depends on the second. When doing local development, I will use Go's module replace function to point to the other directory on disk. I have some reflex commands that will rebuild the projects. I was hoping that I could just have the first project watch for local go changes, or for the binary of the second one changes, however this doesn't seem to work.

In other words, if given two directories dir1 and dir2 I want to run reflex in each directory, but in dir1 watch file(s) in dir2 somehow.

My guess is that if you try to watch something outside of your current directory, either via a glob or a regex, it doesn't set up the watches properly and so never sees anything.

I think it might be nice for reflex to warn if a glob pattern doesn't match the current directory or something, but separately it'd also be nice to be able to do this. I ended up doing something super hacky where in the reflex command of the second, I update a file in a git ignored directory.

It's also possible that this does work and it is just user error.

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

1 participant