Skip to content

Commit

Permalink
govet: skip fieldalignment test on 32bit platforms (#5463)
Browse files Browse the repository at this point in the history
  • Loading branch information
realsn0w authored Feb 22, 2025
1 parent 9e832c9 commit 53d58e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/golinters/govet/testdata/govet_fieldalignment.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !(386 || arm || mips || mipsle)
//golangcitest:args -Egovet
//golangcitest:config_path testdata/govet_fieldalignment.yml
package testdata
Expand Down
4 changes: 4 additions & 0 deletions test/testshared/directives.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ func evaluateBuildTags(tb testing.TB, line string) bool {
return true
}

if tag == runtime.GOARCH {
return true
}

if buildTagGoVersion(tag) {
return true
}
Expand Down

0 comments on commit 53d58e8

Please sign in to comment.