Open davidnewhall opened 1 year ago
Ah yeah, generating a go file in the project directory will do that. Eww.. that's a pain. All I can suggest is you do that out of band for now rather than using go generate
.
The move to using Task in v3 will completely remove this issue as we are externalising the build process. I see you're on Mac. Would you be interested in trying it out when it's ready for testing (in a few weeks hopefully)?
I'm down to try new things. Find me on Discord as Captain.
I'm down as well!
My workaround is to just comment out my generating lines while I'm running wails dev
. The drawback is that I sometimes forget to run the thing and sometimes I commit the change to the repo on accident.
Description
I run
go generate
inpreBuildHooks
which generates a go file. When this happens while runningwails dev
it causes a rebuild loop that only ends when I ctrl+c.The
go generate
command creates language translations withgotext
.To Reproduce
I tried to reproduce this with a quick running go generate command, but it doesn't seem to happen unless it takes a few seconds to run. I'm not exactly sure what triggers it.
gotext
generates several json files and 1 go file, and takes about 3-5s to run.Expected behaviour
Run preBuildHooks and cool off a few seconds maybe?
Screenshots
Logs looping:
Additional context
Please let me know what additional information would be useful. You might even be able to clone my repo and reproduce it locally.