oklog/ulid

go get github.com/oklog/ulid/v2

Closed this issue · 5 comments

getting this error: how to resolve when i did
go get github.com/oklog/ulid/v2

package github.com/oklog/ulid/v2: cannot find package "github.com/oklog/ulid/v2" in any of:
/usr/lib/go-1.10/src/github.com/oklog/ulid/v2 (from $GOROOT)
/root/go/src/github.com/oklog/ulid/v2 (from $GOPATH)

Upgrade your Go to a more recent version that understands modules.

I'm having the same issue with go1.13.1 fresh install.
` ➜ ~ go get github.com/oklog/ulid/v2
package github.com/oklog/ulid/v2: cannot find package "github.com/oklog/ulid/v2" in any of:
/usr/local/go/src/github.com/oklog/ulid/v2 (from $GOROOT)
/home/[user]/projects/src/github.com/oklog/ulid/v2 (from $GOPATH)

➜ ~
`

What is the result of

env GO111MODULE=on go get github.com/oklog/ulid/v2

Hi!
I'm having the same issue with go1.15.5 windows/amd64.
I didn't get this error in the past, but now I do.
I wonder why...

Hi!
I'm having the same issue with go1.15.5 windows/amd64.
I didn't get this error in the past, but now I do.
I wonder why...

I solved the problem by using this command on Windows :$env:GO111MODULE="on"