Dep-solving failure:no versions/no more versions of XXX

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

Objective

If you are using Golang the DEP tool, I believe you may encounter this problem

DEP version

$ dep versiondep: version     : devel build date  :  git hash    :  go version  : go1.10 go compiler : gc platform    : linux/amd64

Latest releaseis currentlyv0.4.1

Problem

depwhen using the package management tool, either execution dep init -v ordep ensure

Always report no more versions an issue with version errors (, no versions )

$ dep ensureSolving failure: No versions of xxxx met constraints:    master: unable to update checked out version: fatal: reference is not a tree: 2c5e7ac708aaa719366570dd82bda44541ca2a63: command failed: [git checkout 2c5e7ac708aaa719366570dd82bda44541ca2a63]: exit status 128

Reason

is a bug , because the cache error is not updated correctly

Solution Solutions

rm -rf $GOPATH/pkg/dep/sources

And then dep ensure dep init -v we can do it again.

What kind of strange problems have you encountered, exchange: =)

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.