Giter Club home page Giter Club logo

Comments (13)

ai0376 avatar ai0376 commented on August 11, 2024 32
$ go mod edit -replace=github.com/satori/[email protected]=github.com/satori/go.uuid@master
$ go mod tidy
$ go build

It's will ok! @anks333

from go.uuid.

thurt avatar thurt commented on August 11, 2024 15

@anks333 i think you would get this error only if you are using the api from master but have 1.2 installed in vendor/

If anybody is coming here from Googling build errors and you're using dep then you'll need to change your Gopkg.toml to point to the master branch for go.uuid.

Like so:

[[override]]
name = "github.com/satori/go.uuid"
revision = "master"

from go.uuid.

bheemreddy181-zz avatar bheemreddy181-zz commented on August 11, 2024 10

go get github.com/satori/go.uuid@master will work

from go.uuid.

griffincox avatar griffincox commented on August 11, 2024 2

Thanks Bheem @bheemreddy181

from go.uuid.

Sectorbob avatar Sectorbob commented on August 11, 2024

I am experiencing the same sort of behavior. go get -u places the correct revision (I assume), while dep init or dep ensure are causing the vendor/ contents to act awry.

from go.uuid.

macrael avatar macrael commented on August 11, 2024

See #66

from go.uuid.

klj890 avatar klj890 commented on August 11, 2024

I have a similar question.
I used go version 1.11.
When I use module , it will be prompted as follows:

➜ :  GO111MODULE=on go run app.go
# portal-for-gdt/model
model/uias.go:42:23: not enough arguments in call to uuid.Must
	have (uuid.UUID)
	want (uuid.UUID, error)

but, if set GO111MODULE=off , All is well。。。。
this is my code:

acc.State = uuid.Must(uuid.NewV4()).String()

from go.uuid.

jdharms avatar jdharms commented on August 11, 2024

@mjrao Thank you so much!

from go.uuid.

hubyhuby avatar hubyhuby commented on August 11, 2024

I tried several of the options in this thread, but none worked for me on go 1.12.
I finally switch to github.com/gofrs/uuid and it worked instantaneously ! Even with GO111MODULE=on

from go.uuid.

ShrawanLakhe avatar ShrawanLakhe commented on August 11, 2024

Thanks @bheemreddy181

from go.uuid.

mengdodo avatar mengdodo commented on August 11, 2024

Thanks @bheemreddy181

from go.uuid.

 avatar commented on August 11, 2024

Thanks @bheemreddy181

from go.uuid.

LBiff avatar LBiff commented on August 11, 2024

go get github.com/satori/go.uuid@master will work

Thanks, good job!! But why it can be work?

“github.com/koding/kite” ==> this project also refers to the "master" with dep:

[[constraint]]
branch = "master"
name = "github.com/satori/go.uuid"

But that does not work with the follow error when i import it (github.com/koding/kite) directly to my own project.

not enough arguments in call to uuid.Must
have (uuid.UUID)
want (uuid.UUID, error)


But it can work when i command "go get xxx.uuid@master" or add "xxx.uuid master" to go.mod.

so, why? Hasn't this project been refered to master? why we need get the master branch agin?

from go.uuid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.