govet: skip fieldalignment test on 32bit platforms (#5463) · golangci/golangci-lint@53d58e8 (original) (raw)
File tree
2 files changed
lines changed
- pkg/golinters/govet/testdata
2 files changed
lines changed
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
@@ -1,3 +1,4 @@ | |||
1 | +//go:build !(386 | | arm | |
1 | 2 | //golangcitest:args -Egovet | |
2 | 3 | //golangcitest:config_path testdata/govet_fieldalignment.yml | |
3 | 4 | package testdata |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -136,6 +136,10 @@ func evaluateBuildTags(tb testing.TB, line string) bool { | ||
136 | 136 | return true |
137 | 137 | } |
138 | 138 | |
139 | +if tag == runtime.GOARCH { | |
140 | +return true | |
141 | + } | |
142 | + | |
139 | 143 | if buildTagGoVersion(tag) { |
140 | 144 | return true |
141 | 145 | } |