go-watcher
go-watcher copied to clipboard
Building with Go 1.20.1: flag provided but not defined: -i
It seems that the watcher can no longer be used with the newest version of Go 1.20.1
The problem is that up until now the -i
flag was deprecated and using it gave a warning, but the watcher was successfully building the binary.
From Go 1.20.1 the watcher no longer works, because using the -i
flag returns an error, not a warning:
myservice | flag provided but not defined: -i
myservice | usage: go build [-o output] [build flags] [packages]
myservice | Run 'go help build' for details.
myservice | A build error occurred. Please update your code...
Can you please update the code or would you accept a PR that does that? Thank you!
Does someone know of a alternative similar to the go-watcher which is maintained and supports new Go versions?