#Forking of gocloud.dev

6 messages · Page 1 of 1 (latest)

summer wave
#

I want to fork this library to support apache pulsar.

But how I do overwrite a project that is using it?

In go.mod I see:

gocloud.dev v0.25.0
gocloud.dev/pubsub/natspubsub v0.25.0

Do I do a replacement with what's in my own github repo?

like

replace gocloud.dev v0.25.0 => github/paul/gocloud.dev v0.0.1 

Thanks

summer wave
#

Also I have come across an issue in go-cloud repo:

I will point out that nothing prevents you from developing a separate provider out-of-tree. This has been done by folks before, and it works well.

Does anyone know what this means? Thanks

subtle gust
summer wave
#

Thanks for the reply, appreciate it.

In the source of the project I'm working on.

"github.com/inngest/inngest/pkg/config"
    "github.com/inngest/inngest/pkg/inngest/log"
    "github.com/inngest/inngest/pkg/logger"
    "gocloud.dev/pubsub"
    _ "gocloud.dev/pubsub/awssnssqs"
    _ "gocloud.dev/pubsub/gcppubsub"
    _ "gocloud.dev/pubsub/mempubsub"
    _ "gocloud.dev/pubsub/natspubsub"
    "golang.org/x/sync/semaphore"

I'm now hoping to just suppliment with my own version

_ "github.com/paul/pulsarpubsub"

And that means it will be picked up? But I'm not sure if I am missing anything fundamental just yet.

I'm still at the stage of converting an existing implementation to work with pulsar

subtle gust
#

Yes it should work

#

Bear in mind you might have to remove the go.sum / run a go mod tidy