I'm using go with multiple version as stated in this doc https://go.dev/doc/manage-install
go install golang.org/dl/go1.10.7@latest
go1.10.7 download
And I'm also using ginkgo, which I installed like this: (based on https://onsi.github.io/ginkgo/#installing-ginkgo)
go install github.com/onsi/ginkgo/v2/ginkgo@latest
I can run a ginkgo test suite like this:
ginkgo ./...
However, this uses my main go version. I would like to use ginkgo to test with another version of go. Currently, the best I can do is to run the ginkgo tests with go test
go1.10.7 test ./...
Can I make ginkgo
use different version of go to test with?