Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to install #51

Open
ryanking opened this issue Sep 22, 2020 · 3 comments
Open

unable to install #51

ryanking opened this issue Sep 22, 2020 · 3 comments

Comments

@ryanking
Copy link

Maybe I am doing something wrong, but the instructions from the README do not work for installing this library.

 $ go get github.com/hashicorp/terraform-config-inspect
cannot find package "github.com/hashicorp/hcl/v2" in any of:
	/usr/local/Cellar/go/1.15.2/libexec/src/github.com/hashicorp/hcl/v2 (from $GOROOT)
	/Users/rking/go/src/github.com/hashicorp/hcl/v2 (from $GOPATH)
cannot find package "github.com/hashicorp/hcl/v2/gohcl" in any of:
	/usr/local/Cellar/go/1.15.2/libexec/src/github.com/hashicorp/hcl/v2/gohcl (from $GOROOT)
	/Users/rking/go/src/github.com/hashicorp/hcl/v2/gohcl (from $GOPATH)
cannot find package "github.com/hashicorp/hcl/v2/hclparse" in any of:
	/usr/local/Cellar/go/1.15.2/libexec/src/github.com/hashicorp/hcl/v2/hclparse (from $GOROOT)
	/Users/rking/go/src/github.com/hashicorp/hcl/v2/hclparse (from $GOPATH)
cannot find package "github.com/hashicorp/hcl/v2/hclsyntax" in any of:
	/usr/local/Cellar/go/1.15.2/libexec/src/github.com/hashicorp/hcl/v2/hclsyntax (from $GOROOT)
	/Users/rking/go/src/github.com/hashicorp/hcl/v2/hclsyntax (from $GOPATH)
@sdib
Copy link

sdib commented Oct 29, 2020

Maybe you're using Go in GOPATH mode.
Can you try to :

  1. export GO111MODULE="on"
  2. go get github.com/hashicorp/terraform-config-inspect

@osterman
Copy link

osterman commented Dec 7, 2020

Relates to #57

@eballetbaz
Copy link

Hi,
I had the same issue on Windows and this solved the problemfor me:

set GO111MODULE=on
go get github.com/hashicorp/terraform-config-inspect

But for sure I will appreciate having pre-built binaries too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants