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

Commit

Permalink
Add go1.19
Browse files Browse the repository at this point in the history
Fixes #165.
  • Loading branch information
xen0n committed Aug 5, 2022
1 parent 9f71238 commit 72b249d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions platform_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 72b249d

Please sign in to comment.