Skip to content

Commit da10d2b

Browse files
cfergeauanjannath
authored andcommitted
lint: Force amd64 ARCH for Windows golangci-lint runs
Trying to run `make cross-lint` on a M1 mac results in: % GOOS=windows /Users/teuf/dev/crc/tools/bin/golangci-lint run WARN [runner] Can't run linter goanalysis_metalinter: buildir: failed to load package w32uiautomation: could not load export data: no export data for "github.com/openstandia/w32uiautomation" ERRO Running error: 1 error occurred: * can't run linter goanalysis_metalinter: buildir: failed to load package w32uiautomation: could not load export data: no export data for "github.com/openstandia/w32uiautomation" Not exactly clear what's happening, but Windows on arm64 is not a thing, and forcing GOARCH to amd64 avoids this issue, so this commit does that.
1 parent 316979d commit da10d2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ lint: golangci-lint
252252
cross-lint: golangci-lint
253253
GOOS=darwin $(TOOLS_BINDIR)/golangci-lint run
254254
GOOS=linux $(TOOLS_BINDIR)/golangci-lint run
255-
GOOS=windows $(TOOLS_BINDIR)/golangci-lint run
255+
GOARCH=amd64 GOOS=windows $(TOOLS_BINDIR)/golangci-lint run
256256

257257
.PHONY: gen_release_info
258258
gen_release_info:

0 commit comments

Comments
 (0)