Masterminds / glide

Package Management for Golang
https://glide.sh
Other
8.15k stars 540 forks source link

Ability to work with go modules #1017

Open gburanov opened 6 years ago

gburanov commented 6 years ago

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 commented 6 years ago

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

sripathivenky commented 6 years ago

Any update on this??

dcu commented 5 years ago

has someone found a workaround for this?

pmalekn commented 5 years ago

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).

lrita commented 5 years ago

golang/dep#1962 is a good reference.