what to do when the source code uses a version of go that is disabled

69 views Asked by At

The source code's go.mod file uses go 1.16 but I can't install this go version since it has been disabled and I get the following: Error: [email protected] has been disabled because it is not supported upstream!

I'm not authorised to change the source code but I can't run it without having go 1.16 installed. What can I do here?

tried

brew install [email protected]
1

There are 1 answers

2
Iain Duncan On

The go version directive in the go.mod file is just a minimum Go version for that library, not the one you have to use. As Go is backward compatible any Go version after 1.16 will work but ones before it will not.