diff --git a/platform.go b/platform.go index 3d4ab71..bc6b83e 100644 --- a/platform.go +++ b/platform.go @@ -178,7 +178,11 @@ var ( // no new platforms in 1.18 Platforms_1_18 = Platforms_1_17 - PlatformsLatest = Platforms_1_18 + Platforms_1_19 = addDrop(Platforms_1_18, []Platform{ + {"linux", "loong64", true}, + }, nil) + + PlatformsLatest = Platforms_1_19 ) // SupportedPlatforms returns the full list of supported platforms for diff --git a/platform_test.go b/platform_test.go index 14da569..1771816 100644 --- a/platform_test.go +++ b/platform_test.go @@ -108,10 +108,11 @@ func TestSupportedPlatforms(t *testing.T) { t.Fatalf("bad: %#v", ps) } - ps = SupportedPlatforms("go1.10") - if !reflect.DeepEqual(ps, Platforms_1_10) { + ps = SupportedPlatforms("go1.19") + if !reflect.DeepEqual(ps, Platforms_1_19) { t.Fatalf("bad: %#v", ps) } + // Unknown ps = SupportedPlatforms("foo") if !reflect.DeepEqual(ps, PlatformsLatest) {