I am trying to use pulsar from golang and i am trying to migrate my project from dep to go modules since some of the newer libraries prefer go modules.
When i tried to create a new project and run
dep ensure -add github.com/apache/pulsar/pulsar-client-go/pulsar@v2.4.1
it works perfect,I am getting 2.4.1 tag it loads the correct cgo library everything is great.
But in go modules when i try to do like
go.mod File:
module sample
go 1.13
require ( github.com/apache/pulsar/pulsar-client-go/pulsar v2.4.1 )
It fails with
require github.com/apache/pulsar/pulsar-client-go/pulsar: version "v2.4.1" invalid: unknown revision pulsar-client-go/pulsar/v2.4.1