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

If I ignore .env with .gitignore is there a way to watch it? #302

Open
frederikhors opened this issue Mar 16, 2024 · 3 comments
Open

If I ignore .env with .gitignore is there a way to watch it? #302

frederikhors opened this issue Mar 16, 2024 · 3 comments

Comments

@frederikhors
Copy link

I have this .gitignore:

/.dist
/.tmp
/.env

... and a lot more

and as you can see I'm ignoring .env file.

I'm using this command:

cargo watch --ignore "some" --ignore "some/another" -x run

But if I change the .env file obviously it doesn't re-run.

Is there a way to tell it to watch the .env file?

Something like:

cargo watch --ignore "some" --ignore "some/another" --watch ".env" -x run
@passcod
Copy link
Member

passcod commented Mar 18, 2024

not yet in cargo watch. we do have negative filters in watchexec, !pattern

@frederikhors
Copy link
Author

Thanks. Can we leave this open until?

@sjunepark
Copy link

I was also curious about this.

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