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

build(deps): bump golang.org/x/oauth2 from 0.26.0 to 0.27.0 #221

Merged
merged 2 commits into from
Feb 27, 2025

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 25, 2025

Bumps golang.org/x/oauth2 from 0.26.0 to 0.27.0.

Commits
  • 681b4d8 jws: split token into fixed number of parts
  • 3f78298 all: upgrade go directive to at least 1.23.0 [generated]
  • 109dabf endpoints: add links/provider for Discord
  • ac571fa oauth2: fix docs for Config.DeviceAuth
  • 314ee5b endpoints: add patreon endpoint
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.26.0 to 0.27.0.
- [Commits](golang/oauth2@v0.26.0...v0.27.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot requested a review from a team as a code owner February 25, 2025 11:40
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Feb 25, 2025
go.mod Outdated
@@ -4,6 +4,7 @@
module github.com/microsoft/go-infra

go 1.22.0
toolchain go1.23.6
Copy link
Member

Choose a reason for hiding this comment

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

Does the toolchain being > than the go above is correct?

Copy link
Member

Choose a reason for hiding this comment

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

It could be correct, see this post for more info about how these directives works: https://go.dev/blog/toolchain.

This PR set the toolchain to be go1.23.6 because the new golang.org/x/oauth2 now requires Go 1.23: https://github.com/golang/oauth2/blob/681b4d8edca1bcfea5bce685d77ea7b82ed3e7b3/go.mod#L3, which conflicts with our go directives, that sets Go 1.22 as the minimum required version.

The problem is that this go.mod update is wrong. Setting the toolchain directive is almost never needed, if it is omitted it defaults to the go directives, and having just one directive is easier to maintain. In this case, he also need the go directive to be at least go1.23.0, which is what you get when running go mod tidy after bumping the oauth2 module. I don't know why Dependabot didn't touch the go directive, maybe is using an outdated Go version, or it could be implementing this independently.

I'll fix it.

Copy link
Member

Choose a reason for hiding this comment

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

Looks like it's a bug tracked by:

(It seems that conversation got briefly derailed by general toolchain discussion, but the original description and latest reply describe this problem.)

@dagood dagood merged commit bbdb6df into main Feb 27, 2025
15 checks passed
@dagood dagood deleted the dependabot/go_modules/golang.org/x/oauth2-0.27.0 branch February 27, 2025 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants