Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building with Go 1.20.1: flag provided but not defined: -i #52

Open
penkovski opened this issue Feb 21, 2023 · 1 comment
Open

Building with Go 1.20.1: flag provided but not defined: -i #52

penkovski opened this issue Feb 21, 2023 · 1 comment

Comments

@penkovski
Copy link

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?

@penkovski penkovski changed the title Building with Go 1.201: go: -i flag is deprecated Building with Go 1.20.1: go: -i flag is deprecated Feb 21, 2023
@penkovski penkovski changed the title Building with Go 1.20.1: go: -i flag is deprecated Building with Go 1.20.1: flag provided but not defined: -i Feb 21, 2023
@nsmithuk
Copy link

nsmithuk commented Aug 5, 2023

I've ended up moving to https://github.com/bokwoon95/wgo because of this. Almost a drop in replacement for my use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants