Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e18296f

Browse files
committed
make package docker/pkg/platform support darwin
Signed-off-by: allencloud <[email protected]>
1 parent 089166e commit e18296f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

pkg/platform/architecture_unix.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
// +build freebsd solaris
1+
// +build freebsd solaris darwin
22

3+
// Package platform provides helper function to get the runtime architecture
4+
// for different platforms.
35
package platform
46

57
import (
68
"os/exec"
79
"strings"
810
)
911

10-
// runtimeArchitecture get the name of the current architecture (i86pc, sun4v)
12+
// runtimeArchitecture gets the name of the current architecture (x86, x86_64, i86pc, sun4v, ...)
1113
func runtimeArchitecture() (string, error) {
1214
cmd := exec.Command("/usr/bin/uname", "-m")
1315
machine, err := cmd.Output()

0 commit comments

Comments
 (0)