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>
pull/12704/head
weidongkl 12 months ago
parent dcf6819877
commit 57a1bb80e5
No known key found for this signature in database
GPG Key ID: 5977E9E39B2579B0

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