If we're on OS X then have Go cross compile for us
authorAaron Wood <aaronjwood@gmail.com>
Thu, 20 Jul 2017 16:03:30 +0000 (12:03 -0400)
committerAaron Wood <aaronjwood@gmail.com>
Thu, 20 Jul 2017 16:03:30 +0000 (12:03 -0400)
build.sh

index 9e816d2..cd21ba8 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -1,6 +1,10 @@
 #!/usr/bin/env bash
 set -e
 
+if [ "$(uname)" == "Darwin" ]; then
+       export GOOS=linux
+fi
+
 ORG_PATH="github.com/containernetworking"
 export REPO_PATH="${ORG_PATH}/plugins"