wealdtech / ethereal

Apache License 2.0
209 stars 41 forks source link

go get causes "amgiguous import" error #30

Closed chuacw closed 2 years ago

chuacw commented 2 years ago

go get -u github.com/wealdtech/ethereal

github.com/wealdtech/ethereal imports github.com/wealdtech/ethereal/cmd imports github.com/wealdtech/ethereal/util/funcparser imports github.com/antlr/antlr4/runtime/Go/antlr: ambiguous import: found package github.com/antlr/antlr4/runtime/Go/antlr in multiple modules: github.com/antlr/antlr4 v0.0.0-20201029161626-9a95f0cc3d7c (C:\Users\Administrator\go\pkg\mod\github.com\antlr\antlr4@v0.0.0-20201029161626-9a95f0cc3d7c\runtime\Go\antlr) github.com/antlr/antlr4/runtime/Go/antlr v0.0.0-20210826220005-b48c857c3a0e (C:\Users\Administrator\go\pkg\mod\github.com\antlr\antlr4\runtime!go\antlr@v0.0.0-20210826220005-b48c857c3a0e)

image

mcdee commented 2 years ago

go get -uwill attempt to update all dependencies to their latest version. This will commonly create issues with changes to the public APIs of the dependencies.

If you want the latest release version of ethereal you can run go get github.com/wealdtech/ethereal@latest. If you are after current head you can do so with go get github.com/wealdtech/ethereal@master.

If you need an updated dependency for a particular reason please could you let me know which dependency, and why? Thank you.

chuacw commented 2 years ago

I don't need any particular updated dependency. Just trying to figure out how to get it.

Thanks for responding.