helm-diff icon indicating copy to clipboard operation
helm-diff copied to clipboard

Build for Apple Silicon (macos-arm64)

Open njoniec opened this issue 5 years ago • 14 comments

Plugin install fails on ARM-based Macs. I was able to build from source and copy the executable to my helm plugins directory.

I am using helm 3.5.2 and helmfile 0.138 from Homebrew.

nick@macbook-air ~ % helm plugin install https://github.com/databus23/helm-diff
No prebuild binary for macos-arm64.
Failed to install helm-diff
	For support, go to https://github.com/databus23/helm-diff.
Error: plugin install hook for "diff" exited with error

njoniec avatar Feb 18 '21 15:02 njoniec

Hi @njoniec

Maybe you can try this fix an check out if it works on your machine too:

https://github.com/databus23/helm-diff/pull/264

Cheers, f3lan

f3lan avatar Mar 07 '21 14:03 f3lan

Hi @njoniec

Maybe you can try this fix an check out if it works on your machine too:

#264

Cheers, f3lan

how to do it? Check it out and build it locally?

zephyrpathsofglory avatar Mar 09 '21 10:03 zephyrpathsofglory

@nightofmind install plugin locally, checkout the PR, and then in plugin directory run helm plugin install . For a record: https://helm.sh/docs/topics/plugins/#installing-a-plugin

atassis avatar Mar 09 '21 15:03 atassis

@njoniec Alternatively you can install the plugin via the url: helm plugin install https://github.com/f3lan/helm-diff.

I did the small fix on my forked master too.

But the solution of @atassis is perfectly fine as well.

f3lan avatar Mar 09 '21 16:03 f3lan

@nightofmind install plugin locally, checkout the PR, and then in plugin directory run helm plugin install . For a record: helm.sh/docs/topics/plugins/#installing-a-plugin

yes, it works. thanks, @f3lan @atassis

zephyrpathsofglory avatar Mar 10 '21 02:03 zephyrpathsofglory

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 09 '21 02:06 stale[bot]

anyway I manage to install helm-diff plugins in the m1 macos-arm64 with :

brew install helm
gh repo clone databus23/helm-diff
cd helm-diff

change install-binary.sh line 58 to

  supported="linux-amd64\nfreebsd-amd64\nmacos-amd64\nmacos-arm64\nwindows-amd64"
go mod vendor
make install/helm3

kholisrag avatar Jun 26 '21 05:06 kholisrag

bump

rafilkmp3 avatar Jul 19 '21 16:07 rafilkmp3

Thinking about making a fork it finding a proper one, though u don't know golang 👀 but able to support open source

atassis avatar Jul 19 '21 18:07 atassis

Any news on this?

ypicard avatar Oct 05 '21 00:10 ypicard

+1

jaronschulz avatar Oct 19 '21 08:10 jaronschulz

+1

sp1ke1980 avatar Oct 25 '21 12:10 sp1ke1980

I've compiled helm-diff using the approach mentioned above, but diff can't show colored output. Possible anyone meets with this and know a solution?

sp1ke1980 avatar Oct 25 '21 12:10 sp1ke1980

I've compiled helm-diff using the approach mentioned above, but diff can't show colored output. Possible anyone meets with this and know a solution?

What go version did you use? $GOPATH already correct?

kholisrag avatar Nov 04 '21 19:11 kholisrag