Wednesday, January 16, 2019

How To Deal With Dep Ensure Issue

Symptom:

When we create a new project in golang, we run "dep ensure" and get below error:
dep ensure
Solving failure: No versions of k8s.io/gengo met constraints:
        master: unable to update checked out version: fatal: reference is not a tree: f8a0810f38afb8478882b3835a615aebfda39afa
: command failed: [git checkout f8a0810f38afb8478882b3835a615aebfda39afa]: exit status 128

Solution:

Use "dep ensure -v"  to get debug information and find out which packages have check out issues
In this example, k8s.io/gengo  has issues.

It is very likely  dep cache corrupted on this package when new version of our apps or tools being added 

We need to delete dep cache of k8s.io/gengo

rm -rf  $GOPATH/go/dep/source/https---github.com-kubernetes-gengo

rerun dep ensure


5 comments:

sheela rajesh said...

Thank you for sharing such kind of precious information with us.It really useful for many of them like me.
Software Testing Training in Chennai
Software testing training in T Nagar
JAVA Training in Chennai
Python Training in Chennai
Hadoop Training in Chennai
Selenium Training in Chennai
Software Testing Training in Chennai
Software testing Training in Velachery

haseeb said...

A cool and adorable collection of happy birthday images and wishes for free download. Feel free to share the images under the category 'BetterHalf' through any .Happy Birthday Gorgeous Lady

tech said...
This comment has been removed by the author.
tech said...

SWhat is the REAL Secret to Making the Law of Attraction Work for You Right NOW? At last! Bestselling author and Secret movie star Dr. Joe Vitale reveals for .Instant-Manifestation
.

Emmajoen said...

Are you love action game ? PUBG Lite is latest version has features various game modes, including classic, arcade, and training mode.