Skip to content

Commit

Permalink
language/go: Add windows arm64 as a known platform. (#1507)
Browse files Browse the repository at this point in the history
Before this change `_windows_arm64.go` files were ignored
by gazelle.
  • Loading branch information
connyay committed Apr 19, 2023
1 parent a23e4f9 commit 3d8aac0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion language/go/fileinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,8 @@ func rulesGoSupportsPlatform(v version.Version, p rule.Platform) bool {
p.OS == "linux" && p.Arch == "riscv64" ||
p.OS == "netbsd" && p.Arch == "arm64" ||
p.OS == "openbsd" && p.Arch == "arm64" ||
p.OS == "windows" && p.Arch == "arm") {
p.OS == "windows" && p.Arch == "arm" ||
p.OS == "windows" && p.Arch == "arm64") {
return false
}
return true
Expand Down
1 change: 1 addition & 0 deletions rule/platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ var KnownPlatforms = []Platform{
{"windows", "386"},
{"windows", "amd64"},
{"windows", "arm"},
{"windows", "arm64"},
}

var OSAliases = map[string][]string{
Expand Down

0 comments on commit 3d8aac0

Please sign in to comment.