glide icon indicating copy to clipboard operation
glide copied to clipboard

Ability to work with go modules

Open gburanov opened this issue 7 years ago • 5 comments

Hi. We are using glide and have not switch to new dependency management (go modules and go.mod file). However we already have problems with existing solutions that switched to modules. For example, github.com/colinmarc/hdfs

When I want to add the latest version

glide get get github.com/colinmarc/hdfs

I got error

[ERROR]	Error scanning github.com/colinmarc/hdfs/v2/hadoopconf: cannot find package "." in:
	/Users/gburanov/.glide/cache/src/https-github.com-colinmarc-hdfs/v2/hadoopconf
[ERROR]	Error scanning github.com/colinmarc/hdfs/v2/internal/protocol/hadoop_hdfs: cannot find package "." in:
	/Users/gburanov/.glide/cache/src/https-github.com-colinmarc-hdfs/v2/internal/protocol/hadoop_hdfs
[ERROR]	Error scanning github.com/colinmarc/hdfs/v2/internal/rpc: cannot find package "." in:
	/Users/gburanov/.glide/cache/src/https-github.com-colinmarc-hdfs/v2/internal/rpc

gburanov avatar Sep 12 '18 15:09 gburanov

Is there a way to make it working other then switch to go.mod as well?

gburanov avatar Sep 12 '18 15:09 gburanov

Any update on this??

sripathivenky avatar Oct 11 '18 23:10 sripathivenky

has someone found a workaround for this?

dcu avatar Nov 16 '18 10:11 dcu

To quote @mediocregopher (from https://github.com/mediocregopher/radix/issues/50#issuecomment-441482073)

Hey @armsnyder , it seems like other people are having similar problems with glide, like in this issue Unfortunately there's not much I can do on my end, and I'm not really familiar with glide at all, but I'd recommend putting your two cents into that thread. Ultimately it's up to glide to properly support go modules.

There's also this message on the glide README:

The Go community now has the dep project to manage dependencies. Please consider trying to migrate from Glide to dep. If there is an issue preventing you from migrating please file an issue with dep so the problem can be corrected. Glide will continue to be supported for some time but is considered to be in a state of support rather than active feature development.

So maybe there's not much they'll do either, you might have to just migrate to dep =/

Gonna go ahead and close this, sorry I couldn't be more helpful here.

So I guess it all depends if glide want to support to modules (which doesn't look like it).

pmalekn avatar Dec 17 '18 11:12 pmalekn

golang/dep#1962 is a good reference.

lrita avatar Aug 20 '19 12:08 lrita