Hi, I’m using Tyk 4.3.3 and currently developing a plugin. When the plugin is compiled using Tyk’s plugin compiler, it shows some error saying that some packages are not found:
+ go build -buildmode=plugin -o GolangPlugins_v4.3.3_linux_amd64.so
AuthPlugin.go:15:2: cannot find package "github.com/go-jose/go-jose/v3/jwt" in any of:
/usr/local/go/src/github.com/go-jose/go-jose/v3/jwt (from $GOROOT)
/go/src/github.com/go-jose/go-jose/v3/jwt (from $GOPATH)
../github.com/pomerium/sdk-go/keystore.go:5:2: cannot find package "github.com/hashicorp/golang-lru/v2" in any of:
/usr/local/go/src/github.com/hashicorp/golang-lru/v2 (from $GOROOT)
/go/src/github.com/hashicorp/golang-lru/v2 (from $GOPATH)
after some research, I realized that those packages uses syntax that are only available on Go 1.18 or newer where Tyk’s plugin compiler ver 4.x uses Go version 1.16.15. is there a way to change the golang version on the plugin compiler without upgrading to Tyk 5.x?