Why must rebuild when changed?
uiosun opened this issue · 3 comments
uiosun commented
Hi, how to set "go run main.go" to air.
Why we must use "build & run"? when I has more function and file's project, the rebuild time will slow?
michalb-goflink commented
I did:
cmd = "true"
full_bin = "make run"
cmd
kind of needs to succeed, so let's fake a build.- while
full_bin
runsmake run
which can be anything, for examplego run main.go
full_bin
- Customize binary, can setup environment variables when run your app.
uiosun commented
@michalb-goflink Cool bro! Very grateful to your work.
When night i will try to it, I hope it works for me.
michalb-goflink commented
The only downside I found is that full_bin
command does not seem to be gracefully terminated. But that is no real issue in my code