Skip to content

Commit

Permalink
Update architecture detection method
Browse files Browse the repository at this point in the history
```
In some OS, obtaining the processor type from `uname - p` may fail.
For Golang programs, we should use `go env GOARCH` to obtain the architecture

=====================
$ go env GOARCH
amd64
$ uname -m
x86_64
$ uname -p
unknown
```

Signed-off-by: weidongkl <[email protected]>
(cherry picked from commit 57a1bb8)
  • Loading branch information
weidongkl authored and mattfarina committed Mar 13, 2024
1 parent c309b6f commit 7e18c39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GOBIN = $(shell go env GOPATH)/bin
endif
GOX = $(GOBIN)/gox
GOIMPORTS = $(GOBIN)/goimports
ARCH = $(shell uname -p)
ARCH = $(shell go env GOARCH)

ACCEPTANCE_DIR:=../acceptance-testing
# To specify the subset of acceptance tests to run. '.' means all tests
Expand Down

0 comments on commit 7e18c39

Please sign in to comment.