air icon indicating copy to clipboard operation
air copied to clipboard

Why must rebuild when changed?

Open uiosun opened this issue 1 year ago • 2 comments

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?

uiosun avatar Aug 09 '24 12:08 uiosun

I did:

  cmd = "true"
  full_bin = "make run"
  • cmd kind of needs to succeed, so let's fake a build.
  • while full_bin runs make run which can be anything, for example go run main.go

full_bin - Customize binary, can setup environment variables when run your app.

michalb-goflink avatar Aug 28 '24 13:08 michalb-goflink

@michalb-goflink Cool bro! Very grateful to your work.

When night i will try to it, I hope it works for me.

uiosun avatar Aug 30 '24 07:08 uiosun

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

michalb-goflink avatar Aug 30 '24 07:08 michalb-goflink