RoseSecurity / Terramaid

A utility for generating Mermaid diagrams from Terraform configurations
Apache License 2.0
280 stars 9 forks source link

Add Homebrew installation option #17

Closed yermulnik closed 4 months ago

yermulnik commented 4 months ago

Is your feature request related to a problem? Please describe. Homebrew is a popular macOS/Linux solution to manage packages, which is missing from terramaid yet.

Describe the solution you'd like Add terramaid to Core Homebrew repo or maintain Third-Party Tap (https://docs.brew.sh/How-to-Create-and-Maintain-a-Tap)

Describe alternatives you've considered Provided installation options (go install, build from source and docker image) are missing features of package manager.

yermulnik commented 4 months ago

It also looks like Go installation method doesn't work out of the box 🤔

> echo $GOPATH
/home/giermulnik/go

> go install github.com/rosesecurity/terramaid/v1@latest
go: downloading github.com/rosesecurity/terramaid v1.4.0
go: github.com/rosesecurity/terramaid/v1@latest: module github.com/rosesecurity/terramaid@latest found (v1.4.0), but does not contain package github.com/rosesecurity/terramaid/v1
RoseSecurity commented 4 months ago

I apologize for the documentation error, but I just updated it to reflect this and am working on getting it into Homebrew over the weekend! Here is the updated Go installation command:

go install github.com/RoseSecurity/terramaid@latest
chenrui333 commented 4 months ago

@RoseSecurity I have filed a PR to help include this project into core, can you take a look at this #24 to fix the version issue? Thanks!

RoseSecurity commented 4 months ago

@RoseSecurity I have filed a PR to help include this project into core, can you take a look at this #24 to fix the version issue? Thanks!

This looks great! Thank you for the contribution!

RoseSecurity commented 4 months ago

Thanks to @chenrui333, this issue is complete! Enjoy the easy installation!

brew install terramaid

More features coming soon!

yermulnik commented 4 months ago

🥳 Yay, appreciate all the effort. Yesterday already brew-installed terramaid and that worked fine 👍🏻