-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
readme: bump up golang version #11347
Conversation
@@ -71,10 +71,10 @@ For other distributions you can find the required dependencies [here.](https://l | |||
|
|||
#### Go | |||
|
|||
To build Lotus, you need a working installation of [Go 1.19.12 or higher](https://golang.org/dl/): | |||
To build Lotus, you need a working installation of [Go 1.20.10 or higher](https://golang.org/dl/): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lotus supports Go 1.19.12 so this is not necessarily correct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nonsense bump
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ go version
go version go1.19.2 darwin/arm64
~/code/src/github.com/filecoin-project/lotus (main)
$ make clean all
Makefile:14: Your Golang version is go1.19.2
Makefile:15: *** Update Golang to version to at least 1.20.7. Stop.
See: https://github.com/filecoin-project/lotus/blob/master/GO_VERSION_MIN
I've written 1.20.10 and not 1.20.7 as this is the latest patch version on the 1.20 release.
I believe the bump to Go 1.20.x was made because of QUIC library within libp2p but I might be mistaken on that one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, you're right. I was looking at the release branch.
As Lotus is now using Go 1.20 [1], I also upgrade this CI to use 1.20. [1]: filecoin-project/lotus#11347
As Lotus is now using Go 1.20 [1], I also upgrade this CI to use 1.20. That also needs a slight reformatting to make go fmt happy. [1]: filecoin-project/lotus#11347
As Lotus is now using Go 1.20 [1], also upgrade this CI to use 1.20. This needs slight reformatting to make go fmt happy and the switch from `GODEBUG=cgocheck=2` to `GOEXPERIMENT=cgocheck2`. [1]: filecoin-project/lotus#11347
As Lotus is now using Go 1.20 [1], also upgrade this CI to use 1.20. This needs slight reformatting to make go fmt happy. The CircleCI Ubuntu 22.04 image tagged 2023.07.2 is using Go 1.20.4 [2]. Later versions of that image use Go >= 1.21. [1]: filecoin-project/lotus#11347 [2]: https://discuss.circleci.com/t/linux-machine-executor-2023-q3-update/48580
As Lotus is now using Go 1.20 [1], also upgrade this CI to use 1.20. This needs slight reformatting to make go fmt happy. The CircleCI Ubuntu 22.04 image tagged 2023.07.2 is using Go 1.20.4 [2]. Later versions of that image use Go >= 1.21 [3]. [1]: filecoin-project/lotus#11347 [2]: https://discuss.circleci.com/t/linux-machine-executor-2023-q3-update/48580 [3]: https://discuss.circleci.com/t/linux-machine-executor-2023-q4-update/49457
Updating README to ask for Go version 1.20.x instead of 1.19.x