cycloidio / terracost

Cloud cost estimation for Terraform in your CLI
MIT License
286 stars 30 forks source link

Improve installation documentation #103

Closed Thomas-lhuillier closed 1 year ago

Thomas-lhuillier commented 1 year ago

It's not clear that you first need to clone the project and cd into it before running the go get mentioned here.

I wanted to install it, and after reading the docs, I simply copy-pasted the given command, and got the following error:

$ go mod edit -replace github.com/hashicorp/terraform=github.com/cycloidio/terraform@v1.1.9-cy && go get github.com/cycloidio/terracost
go: go.mod file not found in current directory or any parent directory; see 'go help modules'

Then I figured out I may need to clone the repo first and cd into it, which did the trick.

(Also, I know it's a bit the cherry on top of the cake, but providing a brew formula would be awesome for macOS users 😅)

Thomas-lhuillier commented 1 year ago

Closing as I realized it's a "pure" go package. Somehow I didn't realize that, for some reason I expected to be able to run it in the CLI (that said, it would make testing the library so much easier!)

xescugc commented 1 year ago

(that said, it would make testing the library so much easier!)

Yes that's one of the thing I'm working on, to have a CLI to be able to use it directly if need be