Skip to content

Enable go mod v2

Pre-release
Pre-release
Compare
Choose a tag to compare
@n3wscott n3wscott released this 18 Mar 13:48
0a5202b

Not much difference between -preview3, except we had to rearrange the packages to conform to how go mod expects imports at major version 2 to be.

So all imports for v2 now are at package github.com/cloudevents/sdk-go/v2 and we have dropped the usage of pkg. This means you can string replace github.com/cloudevents/sdk-go/pkg for github.com/cloudevents/sdk-go/v2.

Sorry for the churn, we did not understand there were special rules with go mod at v2 and above.