Glide Install golang.org failed

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

Glide Install golang.org failed

Background

Because golang.org is the wall of the reason, so the domestic installation of the library will fail (cannot detect VCS).

Solution One

Configure the image as follows:

$ rm-rf ~/.glide$ mkdir-p ~/.glide$ Glide MirrorSet HTTPS://golang.org/x/mobileHTTPS://github.com/golang/mobile--vcs git$ Glide mirrorSet HTTPS://golang.org/x/cryptoHTTPS://github.com/golang/crypto--vcs git$ Glide mirrorSet HTTPS://golang.org/x/netHTTPS://github.com/golang/net--vcs git$ Glide mirrorSet HTTPS://golang.org/x/toolsHTTPS://github.com/golang/tools--vcs git$ Glide mirrorSet HTTPS://golang.org/x/text HTTPS://github.com/golang/text --vcs git$ Glide mirrorSet HTTPS://golang.org/x/imageHTTPS://github.com/golang/image--vcs git$ Glide mirrorSet HTTPS://golang.org/x/sysHTTPS://github.com/golang/sys--vcs gitThen execute the $ glide init$ Glide install in the project

Solution II

Without using glide, direct go get downloads the corresponding library in GitHub, copies it to Gopath, and modifies the path in the GOPATH/SRC to match the code.

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.