From 58dbcd0b4d9900fc0074884e5a28ede62e6cd9db Mon Sep 17 00:00:00 2001 From: Adrien Delannoy Date: Wed, 5 Jun 2024 19:53:14 +0200 Subject: [PATCH] fix(build): `uname` handling for mac M1 arch. Fixes #13112 (#13113) Co-authored-by: Anton Gilgur Signed-off-by: Adrien Delannoy --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 90250f3d5dc1..7f043c9ed6e2 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ SRC := $(GOPATH)/src/github.com/argoproj/argo-workflows # docker image publishing options IMAGE_NAMESPACE ?= quay.io/argoproj DEV_IMAGE ?= $(shell [ `uname -s` = Darwin ] && echo true || echo false) -TARGET_PLATFORM := $(shell [ `uname -m` = arm64 ] && echo linux/arm64 || echo linux/amd64) +TARGET_PLATFORM ?= linux/$(shell go env GOARCH) # declares which cluster to import to in case it's not the default name K3D_CLUSTER_NAME ?= k3s-default @@ -732,7 +732,7 @@ docs: /usr/local/bin/mkdocs \ # check environment-variables.md contains all variables mentioned in the code ./hack/docs/check-env-doc.sh # build the docs - mkdocs build --strict + TZ=UTC mkdocs build --strict # tell the user the fastest way to edit docs @echo "ℹ️ If you want to preview your docs, open site/index.html. If you want to edit them with hot-reload, run 'make docs-serve' to start mkdocs on port 8000"