-
-
Notifications
You must be signed in to change notification settings - Fork 815
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
Exclude dir not working #678
Comments
Hmm, "works on my machine". Are you sure that it is actually using that config file? Does it fail as expected if you change the build command to some nonsense such as |
Oh sorry, a little misunderstanding, i am not using it to build golang binary file, rather to watch / hot-reload my golang development environment.
So that is for excluding directory on I want to watch the changes on my golang project but excluding that
That's still not excluding |
No, it is not specific to the build command. It specifies what directories should be excluded from watching for changes. What do you want to happen when air detects a file change? What is supposed to be reloaded and how? |
Sorry, I didn’t notice that you moved exclude_dir out of the [build] section. That does not work. If you remove lines from the toml those settings will be set to their default values, which aren’t necessarily empty. You need to change it back to have any hope of getting it to work. If you do not want to build anything you need to set cmd to something that succeeds but does nothing. One example is here: #632 (comment) |
@istyf I meant building I don't want to build binary file for production, but building the binary file into Okay so I changed back the exclude_dir: Then run air by also pointing the air.toml. file: But still the I am expecting the |
I use:
air v1.61.1, built with Go go1.23.2
This is my
.air.toml
file, put in the project root:But the
node_modules
dir in the project root is still being watched:Expectation:
The
node_modules
should not be watchedThe text was updated successfully, but these errors were encountered: