air
air copied to clipboard
follow_symlink doesn't work as expected
I enabled follow_symlink
in .air.toml
but it doesn't work. ./vendor/github.com/xxxxx/api-common
is a symlink point to /Users/ocavue/go/src/github.com/xxxxx/api-common
but air
doesn't watch it.
My shell output:
$ air
...
[18:31:33] watching vendor/github.com/api-doc-tools
[18:31:33] watching vendor/github.com/api-doc-tools/swg
[18:31:33] watching vendor/github.com/api-doc-tools/swg/swagger
[18:31:33] watching vendor/github.com/xxxxx
[18:31:33] watching vendor/github.com/xxxxx/go-mysql-driver
[18:31:33] watching vendor/github.com/xxxxx/thunder
[18:31:33] watching vendor/github.com/xxxxx/thunder/batch
[18:31:33] watching vendor/github.com/xxxxx/thunder/concurrencylimiter
[18:31:33] watching vendor/github.com/xxxxx/thunder/diff
[18:31:33] watching vendor/github.com/xxxxx/thunder/graphql
[18:31:33] watching vendor/github.com/xxxxx/thunder/graphql/introspection
[18:31:33] watching vendor/github.com/xxxxx/thunder/graphql/schemabuilder
[18:31:33] watching vendor/github.com/xxxxx/thunder/internal
[18:31:33] watching vendor/github.com/xxxxx/thunder/internal/filter
[18:31:33] watching vendor/github.com/xxxxx/wiki-api
[18:31:33] watching vendor/github.com/xxxxx/wiki-api/migration
[18:31:33] watching vendor/github.com/xxxxx/wiki-api/migration/common
[18:31:33] watching vendor/github.com/xxxxx/wiki-api/migration/common/uuid
[18:31:33] watching vendor/github.com/beevik
[18:31:33] watching vendor/github.com/beevik/etree
[18:31:33] watching vendor/github.com/bradfitz
[18:31:33] watching vendor/github.com/bradfitz/slice
...
$ ls -lrth vendor/github.com/xxxxx
drwxr-xr-x 29 ocavue staff 928B May 24 15:01 go-mysql-driver
drwxr-xr-x 8 ocavue staff 256B May 24 15:01 thunder
drwxr-xr-x 3 ocavue staff 96B May 24 15:01 wiki-api
lrwxr-xr-x 1 ocavue staff 59B Jun 24 16:28 api-common -> /Users/ocavue/go/src/github.com/xxxxx/api-common
My .air.toml
:
root = "."
tmp_dir = "tmp"
[build]
bin = "./tmp/main"
cmd = "go build -o ./tmp/main ."
delay = 1000
exclude_dir = ["assets", "tmp", "scripts", "migration"]
exclude_file = []
exclude_regex = []
exclude_unchanged = false
follow_symlink = true
full_bin = ""
include_dir = []
include_ext = ["go", "tpl", "tmpl", "html"]
kill_delay = "1s"
log = "build-errors.log"
send_interrupt = false
stop_on_error = true
[color]
app = ""
build = "yellow"
main = "magenta"
runner = "green"
watcher = "cyan"
[log]
time = true
[misc]
clean_on_exit = false