Skip to content

Commit 53d58e8

Browse files
authored
govet: skip fieldalignment test on 32bit platforms (#5463)
1 parent 9e832c9 commit 53d58e8

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

pkg/golinters/govet/testdata/govet_fieldalignment.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !(386 || arm || mips || mipsle)
12
//golangcitest:args -Egovet
23
//golangcitest:config_path testdata/govet_fieldalignment.yml
34
package testdata

test/testshared/directives.go

+4
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ func evaluateBuildTags(tb testing.TB, line string) bool {
136136
return true
137137
}
138138

139+
if tag == runtime.GOARCH {
140+
return true
141+
}
142+
139143
if buildTagGoVersion(tag) {
140144
return true
141145
}

0 commit comments

Comments
 (0)