No pit mounting using GODEP (Golang.org/x/tools/go/vcs solution for error)

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

Installing GODEP

The official installation documentation is used go get github.com/tools/godep , unfortunately, because the "network" issue will report an error that cannot be found golang.org/x/tools/go/vcs .

And Https://github.com/golang/tools is a mirror of the Golang.org/x/tools, the code is the same, so I was installed as follows.

  • go get github.com/golang/tools

  • in $ gopath/src/github.com /golang tools folder.

  • in src under and github.com peer new golang.org file, under this folder x folder, then tools are copied in.

  • And then execute it again go get github.com/tools/godep .

  • At this point, GODEP is installed in your $ GOPATH\bin directory.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.