Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to a /v2 module and bump deps #52

Merged
merged 2 commits into from
Nov 26, 2024

Conversation

mfridman
Copy link
Contributor

When tagging a v2, we should also update the Go module itself to a /v2 by suffixing.

Also updated the dependencies.

You should be able to merge this, tag a v2.0.1 and then users will be able to correctly go install ...


go 1.16
go 1.21
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is bumped because the minimum supported version in Go protobuf is v1.21

https://github.com/protocolbuffers/protobuf-go/blob/v1.35.2/go.mod#L3

@mfridman
Copy link
Contributor Author

This is the type of errors users will see:

go install github.com/GoogleCloudPlatform/protoc-gen-bq-schema/v2@latest
go: github.com/GoogleCloudPlatform/protoc-gen-bq-schema/v2@latest: module github.com/GoogleCloudPlatform/protoc-gen-bq-schema@latest found (v1.1.0), but does not contain package github.com/GoogleCloudPlatform/protoc-gen-bq-schema/v2

@mescanne mescanne merged commit 65c3ebd into GoogleCloudPlatform:master Nov 26, 2024
3 checks passed
@mfridman
Copy link
Contributor Author

Looks good now,

go install github.com/GoogleCloudPlatform/protoc-gen-bq-schema/v2@latest
go: downloading github.com/GoogleCloudPlatform/protoc-gen-bq-schema/v2 v2.0.1

And the docs are correct

https://pkg.go.dev/github.com/GoogleCloudPlatform/protoc-gen-bq-schema/v2

@mescanne
Copy link
Collaborator

Thanks Michael!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants