-
Notifications
You must be signed in to change notification settings - Fork 158
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
Use CompileDaemon with go generate? #67
Comments
What do you mean with "an infinite loop"? It builds continuously? I think in general it would be best to have the generate and build step in one pass as a script, no?
and have CompileDaemon run:
|
Hey @githubnemo, thank you for taking the time to respond, and sorry about the ambiguity. I am seeing CompileDaemon start another build as soon as it completes the first, and another after that, and so on. This issue occurs even if I run a single CompileDaemon process that runs a script as you describe. My hypothesis is that because |
Hi @jameshochadel, have you found a workaround for this in the meantime? |
I'm trying to use CompileDaemon with
go generate
, but have not been successful. I am running two instances of CompileDaemon to try accomplishing this. One instances watches the source files, which are .sql, and runsgo generate
when they change. The other watches all .go source files and runsgo build
. I believe my flags are set up so that the two are watching mutually exclusive files:However, when I run this script, CompileDaemon gets stuck in an infinite loop. Is CompileDaemon incompatible with
go generate
?The text was updated successfully, but these errors were encountered: