Failed to go get badger this morning

What version of Go are you using (go version)?

$ go version
:: 1.16

What operating system are you using?

:: Linux Mint

Issue

In terminal, execute below command throw error,

go get GitHub - dgraph-io/badger: Fast key-value DB in Go.

see attachmentbadger go get error

Clone the code to local and reproduce again,

I figured out the solution,

  1. Go to local github.com folder, drop folder badger and dgraph-io
  2. In terminal, run command go get github.com/dgraph-io/badger
    Then everything is back to normal.

This command in the badger home page is not working go get github.com/dgraph-io/badger/v3. Above issue is happened after I go get badger again.

1 Like