mirror of
https://github.com/containerd/containerd.git
synced 2026-11-07 22:06:45 +00:00
Merge pull request #4373 from tonistiigi/darwin-variant-log
platforms: don’t log arm variant error on darwin
This commit is contained in:
1 file changed
+2
-2
@@ -74,8 +74,8 @@ func getCPUInfo(pattern string) (info string, err error) {
|
||||
}
|
||||
|
||||
func getCPUVariant() string {
|
||||
if runtime.GOOS == "windows" {
|
||||
// Windows only supports v7 for ARM32 and v8 for ARM64 and so we can use
|
||||
if runtime.GOOS == "windows" || runtime.GOOS == "darwin" {
|
||||
// Windows/Darwin only supports v7 for ARM32 and v8 for ARM64 and so we can use
|
||||
// runtime.GOARCH to determine the variants
|
||||
var variant string
|
||||
switch runtime.GOARCH {
|
||||
|
||||
Reference in new issue
Block a user