aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Neil <dneil@google.com>2022-07-20 14:04:12 -0700
committerDamien Neil <dneil@google.com>2022-07-21 15:59:32 +0000
commitc1bbc5d45b2b8a056496c3db183b24e7f9a22ff1 (patch)
treed13973d85f0db3041b319b6181729b2962ce2ba7
parent5f429f7042ff6743d1cd695281802b8c9b8d9395 (diff)
downloadgolang-protobuf-c1bbc5d45b2b8a056496c3db183b24e7f9a22ff1.tar.gz
all: make integration test work on darwin/arm64
Skip tests with Go versions prior to 1.16. Bump test version for Go 1.17 and 1.18 to latest. Change-Id: I740bbc63bf35362fcfad3cf0e07ea4bd0ee56748 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/418675 Reviewed-by: Lasse Folger <lassefolger@google.com>
-rw-r--r--integration_test.go13
1 files changed, 11 insertions, 2 deletions
diff --git a/integration_test.go b/integration_test.go
index 4e6177e1..a5f92a88 100644
--- a/integration_test.go
+++ b/integration_test.go
@@ -38,12 +38,21 @@ var (
protobufVersion = "3.15.3"
protobufSHA256 = "" // ignored if protobufVersion is a git hash
- golangVersions = []string{"1.11.13", "1.12.17", "1.13.15", "1.14.15", "1.15.15", "1.16.15", "1.17.10", "1.18.1"}
- golangLatest = golangVersions[len(golangVersions)-1]
+ golangVersions = func() []string {
+ var vers []string
+ switch runtime.GOOS + "/" + runtime.GOARCH {
+ case "darwin/arm64":
+ default:
+ vers = []string{"1.11.13", "1.12.17", "1.13.15", "1.14.15", "1.15.15"}
+ }
+ return append(vers, "1.16.15", "1.17.12", "1.18.4")
+ }()
+ golangLatest = golangVersions[len(golangVersions)-1]
staticcheckVersion = "2022.1.2"
staticcheckSHA256s = map[string]string{
"darwin/amd64": "baa35f8fb967ee2aacad57f026e3724fbf8d9b7ad8f682f4d44b2084a96e103b",
+ "darwin/arm64": "9f01a581eeea088d0a6272538360f6d84996d66ae554bfada8026fe24991daa0",
"linux/386": "4cf74373e5d668b265d7a241b59ba7d26064f2cd6af50b77e62c2b3e2f3afb43",
"linux/amd64": "6dbb7187e43812fa23363cdaaa90ab13544dd36e24d02e2347014e4cf265f06d",
}