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
Go 1.13: one shall not call flag.Parse() in init #3
Comments
karlseguin
pushed a commit
that referenced
this issue
Aug 6, 2019
You're right. I haven't done Go in a while. Do you mind taking a look at: Basically move the init logic into the call to Expectify, guarded by a mutex (probably unecessary, but better safe than sorry I think?) |
I'm not a Go developer only a packager so I can't tell if it's good or not. |
Thanks, I merged. Should be fixed. |
stevegt
added a commit
to stevegt/porcelain
that referenced
this issue
Dec 12, 2020
robertgzr
pushed a commit
to robertgzr/porcelain
that referenced
this issue
Dec 16, 2020
robertgzr
pushed a commit
to robertgzr/porcelain
that referenced
this issue
Jan 24, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See bug golang/go#33475 and bug golang/go#31859 for the rationale
I've read that you don't do much Go anymore, but it would be great if you could keep your package functional for Go 1.13 and further.
The text was updated successfully, but these errors were encountered: