-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 version in mod file too low for webrtc v3 #2728
Comments
Hey @hansgylling Do you want to use Go 1.18 or is it ok to use 1.19? I can update the |
I don't need Go 1.18. I just want the go.mod file to tell the truth about what's the actual minimum version. I'm already working on a PR. The change is done, just writing the PR now. |
Reporting this issue was triggered by your change in #2727 which used retract in the go.mod file, but the retract feature wasn't added until Go 1.16, https://go.dev/ref/mod#go-mod-file-retract |
I have tried to run the tests in most of the other pion repos and almost all of the ones I tested need a higher Go version to build the code than what is declared in go.mod. |
Fixed with c1e5386 |
Your environment.
What did you do?
Try to run tests or build example programs with the Go version declared in the go.mod file, i.e. Go 1.13.
What did you expect?
That programs compile with the version that is declared as minimum/compatible.
What happened?
Programs didn't compile.
Solution
Increase Go version in go.mod file to 1.19.
Shell session that demonstrate the problem
As can be seen in my example, programs and tests in this repo compiles with Go 1.19 but not with Go 1.18.
The text was updated successfully, but these errors were encountered: