-
Notifications
You must be signed in to change notification settings - Fork 660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot load github.com/ugorji/go/codec: ambiguous import: found github.com/ugorji/go/codec in multiple modules #17
Comments
gin version? |
@thinkerou const Version = "v1.4.0-dev" As suggested here: https://github.com/ugorji/go/commit/8fd0f8d918c8f0b52d0af210a812ba882cc31a1e |
@marcoippolito please use v1.4.0 |
@thinkerou After removing also from cache everything related to the previous installation of gin, I repeated the installation:
What am I doing wrong? marco@pc01:~/go$ go get github.com/gin-gonic/gin
|
use go mod, please see https://github.com/gin-gonic/examples/blob/master/go.mod#L8 |
@thinkerou go.mod is already set as v.1.4.0 :
A) Which other go.mod needs to be changed? Still do not understand why, following these instructions : https://github.com/gin-gonic/gin#installation , B) when installing through:
v1.4.0-dev is installed. Can you please clarify me also this point? |
@marcoippolito please learn go mod usage. |
I discovered that the problem disappears when I download the single example files, one by one, instead of downloading or go-getting the entire examples directory |
This seemed to fix it for me: gin-gonic/gin#1673 (comment) |
Please clone the latest version and try the following steps: gin version: v1.5
or switch to
|
Ubuntu 18.04.01 Server Edition
When trying to execute the multiple-services example:
I realized that this happens for all examples.
How to solve the problem?
The text was updated successfully, but these errors were encountered: