I don't seem to be able to use go-ethereum with dep. The following simple app can illustrate the issue:
package main
import "github.com/ethereum/go-ethereum/log"
func main() {
logger := log.New("foo", "bar")
logger.Info("Hello")
}
dep are you using (dep version)?v0.4.1-178-g1550da37
dep command did you run?$ dep init -v
Getting direct dependencies...
Checked 1 directories for packages.
Found 1 direct dependencies.
Root project is "gitlab.com/abemedia/testing"
1 transitively valid internal packages
1 external packages imported from 1 projects
(0) ✓ select (root)
(1) ? attempt github.com/ethereum/go-ethereum with 1 pkgs; 158 versions to try
(1) try github.com/ethereum/go-ethereum@2
(2) ✗ github.com/ethereum/go-ethereum at 2 has problem subpkg(s):
(2) github.com/ethereum/go-ethereum/log is missing; required by (root).
(1) try github.com/ethereum/[email protected]
Importing configuration from govendor. These are only initial constraints, and are further refined during the solve process.
dep creates manifest and lock file and saves dependencies in vendor directory.
Hangs indefinitely (I left it running overnight).
To anyone else facing this issue I got around it by simply creating Gopkg.toml by hand and running dep ensure.
Dep was officially deprecated earlier this year, and the proposal to archive this repository was accepted. As such, I'm closing outstanding issues before archiving the repository. For any further comments, please use the proposal thread on the Go issue tracker. Thanks!
Most helpful comment
To anyone else facing this issue I got around it by simply creating
Gopkg.tomlby hand and runningdep ensure.