Closed chmike closed 2 years ago
Pkgsite requires Go 1.18 to run. The last commit that works with older versions of Go is 4d836c6a652cde92f433967680dfd6171a91ec12.
We did add what Jamal wrote above to the README, but I also understand that not everyone reads the README on every go get
.
We wanted to support generics as early as possible, since people are already writing generic code. We chose to upgrade master to using to 1.18 beta2 rather than creating a new branch.
I'm sorry the experience isn't great, but 1.18 is coming soon.
Wouldn't @findleyr's typeparams package from https://github.com/golang/go/issues/50447 be enough to add support for generics without breaking Go 1.17 right away?
The main problem is ast.IndexListExpr
: https://go.googlesource.com/pkgsite/+/a70a3c2b473c9294b83bc93a6068c8ebcc9c4ecb%5E%21/#F1.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
I expected pkgsite to compile and be usable.
I also expected that such a tool would not depend on an unreleased version of Go. Code depending on an unreleased version of Go should be in a branch that is merged when Go 1.18 is released.
What did you see instead?
Reported compilation errors: