Update architecture detection method

```
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 <weidong@uniontech.com>
(cherry picked from commit 57a1bb80e5)
release-3.14
weidongkl 2 years ago committed by Matt Farina
parent c309b6f0ff
commit 7e18c39f07
No known key found for this signature in database
GPG Key ID: 92C44A3D421FF7F9

@ -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

Loading…
Cancel
Save