Skip to content

Instantly share code, notes, and snippets.

@richardsonlima
Created March 17, 2021 00:18
Show Gist options
  • Save richardsonlima/0a4d46e09aa7a2becabcaba4c21f8944 to your computer and use it in GitHub Desktop.
Save richardsonlima/0a4d46e09aa7a2becabcaba4c21f8944 to your computer and use it in GitHub Desktop.
Go Cobra - cannot find package hcl/hcl/printer
go get -u github.com/spf13/cobra/cobra (current-context is not set)
cannot find package "github.com/hashicorp/hcl/hcl/printer" in any of:
/usr/local/opt/go/libexec/src/github.com/hashicorp/hcl/hcl/printer (from $GOROOT)
/Users/richardsonlima/go/src/github.com/hashicorp/hcl/hcl/printer (from $GOPATH)
To solve (trick):
export GO111MODULE=on (current-context is not set)
go get -u github.com/spf13/cobra/cobra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment