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 libraries and licence year #154

Merged
merged 9 commits into from
Jan 16, 2025
Merged

Upgrade libraries and licence year #154

merged 9 commits into from
Jan 16, 2025

Conversation

emcfarlane
Copy link
Collaborator

This upgrades the go dependencies and bumps the license year.

@emcfarlane emcfarlane requested a review from jhump January 15, 2025 22:44
go.mod Outdated
go 1.21
go 1.22

toolchain go1.23.4

Choose a reason for hiding this comment

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

Is this necessary?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed.

go.mod Outdated
@@ -1,29 +1,29 @@
module connectrpc.com/vanguard

go 1.21
go 1.22

Choose a reason for hiding this comment

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

Shouldn't this be 1.22.0?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Why?

Choose a reason for hiding this comment

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

In newer versions of Go this is supposed to be a full version number. In previous releases just two components was sufficient.

Copy link
Member

@jhump jhump Jan 16, 2025

Choose a reason for hiding this comment

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

It's not that it's supposed to be a full version number -- simply that it is allowed to be. It's the toolchain directive that must be a full version number; this one can still be a language level. I'd prefer we stick with the language level so that things "just work" for users that disable the automatic download of Go toolchains.

Copy link
Member

Choose a reason for hiding this comment

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

Why are we upgrading to v1.22.0? Our general policy is to support three versions of Go. We should stick with 1.21.0, and downgrade whatever dep requires 1.22.0, until we revisit this policy and change it across the ConnectRPC org (and possibly across bufbuild org, too).

We likely will need to change to supporting just the past two versions (like official Go SDK support policy) due to things like this:
googleapis/google-cloud-go@8a68e45#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5


require (
buf.build/gen/go/connectrpc/eliza/connectrpc/go v1.11.1-20230822171018-8b8b971d6fde.1
buf.build/gen/go/connectrpc/eliza/grpc/go v1.3.0-20230822171018-8b8b971d6fde.1
buf.build/gen/go/connectrpc/eliza/protocolbuffers/go v1.31.0-20230822171018-8b8b971d6fde.1
connectrpc.com/connect v1.16.2
connectrpc.com/connect v1.18.1

Choose a reason for hiding this comment

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

We should update buf.gen.yaml to use the same versions of plugins as the updated dependencies.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Just updated.

This upgrades the go dependencies and bumps the license year.

Signed-off-by: Edward McFarlane <[email protected]>
Signed-off-by: Edward McFarlane <[email protected]>
Signed-off-by: Edward McFarlane <[email protected]>
Signed-off-by: Edward McFarlane <[email protected]>
Signed-off-by: Edward McFarlane <[email protected]>
Comment on lines 7 to 10
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we need this. Let's stick with consistent configuration as the other connectrpc Go library repos.

Signed-off-by: Edward McFarlane <[email protected]>
This reverts commit 5b68e15.

Signed-off-by: Edward McFarlane <[email protected]>
Signed-off-by: Edward McFarlane <[email protected]>
@emcfarlane emcfarlane merged commit cbd162e into main Jan 16, 2025
9 checks passed
@emcfarlane emcfarlane deleted the ed/makeUpgrade branch January 16, 2025 18:56
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.

3 participants