From aabf518e4e5f130dcf34ef489caf72fc8b978dd9 Mon Sep 17 00:00:00 2001 From: allencloud Date: Wed, 4 May 2016 00:10:21 +0800 Subject: [PATCH] make package docker/pkg/platform support darwin Signed-off-by: allencloud --- platform/architecture_unix.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/platform/architecture_unix.go b/platform/architecture_unix.go index 21e6a26..45bbcf1 100644 --- a/platform/architecture_unix.go +++ b/platform/architecture_unix.go @@ -1,5 +1,7 @@ -// +build freebsd solaris +// +build freebsd solaris darwin +// Package platform provides helper function to get the runtime architecture +// for different platforms. package platform import ( @@ -7,7 +9,7 @@ import ( "strings" ) -// runtimeArchitecture get the name of the current architecture (i86pc, sun4v) +// runtimeArchitecture gets the name of the current architecture (x86, x86_64, i86pc, sun4v, ...) func runtimeArchitecture() (string, error) { cmd := exec.Command("/usr/bin/uname", "-m") machine, err := cmd.Output()