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 columnify on MacOS w/ go get #55

Closed
eredi93 opened this issue Aug 24, 2020 · 4 comments · Fixed by #56
Closed

Unable to install columnify on MacOS w/ go get #55

eredi93 opened this issue Aug 24, 2020 · 4 comments · Fixed by #56

Comments

@eredi93
Copy link

eredi93 commented Aug 24, 2020

Following the README instructions, i'm trying to install columnify with go get. But i'm getting the following error:

⇒  GO111MODULE=off go get github.com/reproio/columnify/cmd/columnify                                                                      
package github.com/vmihailenco/msgpack/v4: cannot find package "github.com/vmihailenco/msgpack/v4" in any of:
        /usr/local/Cellar/go/1.14.4/libexec/src/github.com/vmihailenco/msgpack/v4 (from $GOROOT)
        /Users/XXX/.go/src/github.com/vmihailenco/msgpack/v4 (from $GOPATH)
@t2y
Copy link
Contributor

t2y commented Aug 26, 2020

I had the same error with GO111MODULE=off. It seems that GO111MODULE=on can build columnify binary into $GOPATH.

$ GO111MODULE=on go get -v github.com/reproio/columnify/cmd/columnify

I found some issues in vmihailenco/msgpack repository. The author suggests using Go Modules.

@t2y
Copy link
Contributor

t2y commented Aug 26, 2020

I think this is README bug, so I will send PR.

@eredi93
Copy link
Author

eredi93 commented Aug 26, 2020

thanks @t2y 🙇

@Mohitp98
Copy link

Mohitp98 commented Oct 22, 2020

Worked for me-->

  1. Run go get github.com/vmihailenco/msgpack to install the master branch (v5) into your GOPATH.
  2. cd ~/go/src/github.com/vmihailenco/msgpack
  3. git checkout v4 to switch to the v4 branch
  4. cd - to return back to the directory you were working in before.
  5. When using HCL, import it still as github.com/vmihailenco/msgpack instead of as github.com/vmihailenco/msgpack/v4

These above steps resolved the import error!

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

Successfully merging a pull request may close this issue.

3 participants