Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Commit 72b249d

Browse files
committed
Add go1.19
Fixes #165.
1 parent 9f71238 commit 72b249d

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

platform.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,11 @@ var (
178178
// no new platforms in 1.18
179179
Platforms_1_18 = Platforms_1_17
180180

181-
PlatformsLatest = Platforms_1_18
181+
Platforms_1_19 = addDrop(Platforms_1_18, []Platform{
182+
{"linux", "loong64", true},
183+
}, nil)
184+
185+
PlatformsLatest = Platforms_1_19
182186
)
183187

184188
// SupportedPlatforms returns the full list of supported platforms for

platform_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,11 @@ func TestSupportedPlatforms(t *testing.T) {
108108
t.Fatalf("bad: %#v", ps)
109109
}
110110

111-
ps = SupportedPlatforms("go1.10")
112-
if !reflect.DeepEqual(ps, Platforms_1_10) {
111+
ps = SupportedPlatforms("go1.19")
112+
if !reflect.DeepEqual(ps, Platforms_1_19) {
113113
t.Fatalf("bad: %#v", ps)
114114
}
115+
115116
// Unknown
116117
ps = SupportedPlatforms("foo")
117118
if !reflect.DeepEqual(ps, PlatformsLatest) {

0 commit comments

Comments
 (0)