Skip to content
This repository has been archived by the owner on Aug 17, 2023. It is now read-only.

Commit

Permalink
Fix build-kfctl to copy the correct binary on darwin arch (#188)
Browse files Browse the repository at this point in the history
* fix third party license download links

* fix build-kfctl for darwin arch

* reverse other unrelated changes
  • Loading branch information
adrian555 authored and k8s-ci-robot committed Jan 22, 2020
1 parent 5edbea3 commit a3d07b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ VERBOSE ?=
PLUGINS_ENVIRONMENT ?= $(GOPATH)/src/github.com/kubeflow/kfctl/bin
export GO111MODULE = on
export GO = go
ARCH ?= $(shell ${GO} env|grep GOOS|cut -d'=' -f2|tr -d '"')

# Location of junit file
JUNIT_FILE ?= /tmp/report.xml
Expand Down Expand Up @@ -124,7 +125,7 @@ build-kfctl: deepcopy generate fmt vet
#GOOS=windows GOARCH=amd64 ${GO} build -gcflags '-N -l' -ldflags "-X main.VERSION=$(TAG)" -o bin/windows/kfctl.exe cmd/kfctl/main.go
GOOS=darwin GOARCH=amd64 ${GO} build -gcflags '-N -l' -ldflags "-X main.VERSION=${TAG}" -o bin/darwin/kfctl cmd/kfctl/main.go
GOOS=linux GOARCH=amd64 ${GO} build -gcflags '-N -l' -ldflags "-X main.VERSION=$(TAG)" -o bin/linux/kfctl cmd/kfctl/main.go
cp bin/linux/kfctl bin/kfctl
cp bin/$(ARCH)/kfctl bin/kfctl

# Release tarballs suitable for upload to GitHub release pages
build-kfctl-tgz: build-kfctl
Expand Down

0 comments on commit a3d07b4

Please sign in to comment.