Skip to content

Commit d9b4191

Browse files
author
Gustavo Bazan
authored
chore(deps): bump golang.org/x/oauth2 from 0.25.0 to 0.28.0 (#531)
1 parent 8971b03 commit d9b4191

File tree

7 files changed

+15
-84
lines changed

7 files changed

+15
-84
lines changed

.github/workflows/pr.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: lint
2020
uses: golangci/[email protected]
2121
with:
22-
version: v1.57.1
22+
version: v1.64.7
2323
args: --timeout=10m
2424
- name: tests
2525
run: make test
@@ -48,4 +48,3 @@ jobs:
4848
- name: Fail when generate introducing diff
4949
run: |
5050
git diff --exit-code
51-

.golangci.yml

Lines changed: 1 addition & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ linters-settings:
1818
- nestingReduce
1919
- sloppyReassign
2020
- typeAssertChain
21+
- builtinShadow
2122
gocyclo:
2223
min-complexity: 15
2324
revive:
@@ -54,37 +55,17 @@ linters-settings:
5455
# We still want empty methods for consistency - do not control if method will be empty.
5556
# - name: unused-receiver
5657
- name: unreachable-code
57-
- name: redefines-builtin-id
58-
tagliatelle:
59-
# check the struck tag name case
60-
case:
61-
use-field-name: true
62-
rules:
63-
json: camel
64-
yaml: camel
65-
6658
linters:
6759
# please, do not use `enable-all`: it's deprecated and will be removed soon.
6860
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
6961
disable-all: true
7062
enable:
7163
- bodyclose # checks whether HTTP response body is closed successfully [fast: false, auto-fix: false]
72-
#- depguard # Go linter that checks if package imports are in a list of acceptable packages [fast: false, auto-fix: false]
7364
- dogsled # Checks assignments with too many blank identifiers (e.g. x, _, _, _, := f()) [fast: true, auto-fix: false]
7465
- errcheck # Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases [fast: false, auto-fix: false]
7566
- errorlint # errorlint is a linter for that can be used to find code that will cause problems with the error wrapping scheme introduced in Go 1.13. [fast: false, auto-fix: false]
76-
# Upstream code intentionally have number of non exhaustive checks
77-
# - exhaustive # check exhaustiveness of enum switch statements [fast: false, auto-fix: false]
78-
- exportloopref # checks for pointers to enclosing loop variables [fast: false, auto-fix: false]
7967
- gochecknoinits # Checks that no init functions are present in Go code [fast: true, auto-fix: false]
8068
- gocritic # Provides many diagnostics that check for bugs, performance and style issues. [fast: false, auto-fix: false]
81-
# Needs to be disabled for generated content as complexity comes from OpenAPI
82-
# - gocyclo # Computes and checks the cyclomatic complexity of functions [fast: true, auto-fix: false]
83-
# We do not control comment content - it is OpenAPI driven
84-
# - godot # Check if comments end in a period [fast: true, auto-fix: true]
85-
# HTML format of our comments break this check thinking that files aren't formatted
86-
# - gofmt # Gofmt checks whether code was gofmt-ed. By default this tool runs with -s option to check for code simplification [fast: true, auto-fix: true]
87-
# - goimports # Goimports does everything that gofmt does. Additionally it checks unused imports [fast: true, auto-fix: true]
8869
- goprintffuncname # Checks that printf-like functions are named with `f` at the end [fast: true, auto-fix: false]
8970
- gosec # Inspects source code for security problems [fast: false, auto-fix: false]
9071
- gosimple # Linter for Go source code that specializes in simplifying a code [fast: false, auto-fix: false]
@@ -100,53 +81,3 @@ linters:
10081
- unconvert # Remove unnecessary type conversions [fast: false, auto-fix: false]
10182
- unparam # Reports unused function parameters [fast: false, auto-fix: false]
10283
- unused # Checks Go code for unused constants, variables, functions and types [fast: false, auto-fix: false]
103-
# Disable as it is hard to avoid whitespace when building templates
104-
# - whitespace # Tool for detection of leading and trailing whitespace [fast: true, auto-fix: true]
105-
106-
# don't enable:
107-
# Replaced by revive
108-
# - stylecheck # Stylecheck is a replacement for golint [fast: false, auto-fix: false]
109-
# - ineffassign # Detects when assignments to existing variables are not used [fast: true, auto-fix: false]
110-
# - asciicheck # Simple linter to check that your code does not contain non-ASCII identifiers [fast: true, auto-fix: false]
111-
# - cyclop # checks function and package cyclomatic complexity [fast: false, auto-fix: false]
112-
# - deadcode # Finds unused code [fast: false, auto-fix: false]
113-
# - dupl # Tool for code clone detection [fast: true, auto-fix: false]
114-
# - durationcheck # check for two durations multiplied together [fast: false, auto-fix: false]
115-
# - exhaustivestruct # Checks if all struct's fields are initialized [fast: false, auto-fix: false]
116-
# - forbidigo # Forbids identifiers [fast: true, auto-fix: false]
117-
# - forcetypeassert # finds forced type assertions [fast: true, auto-fix: false]
118-
# - funlen # Tool for detection of long functions [fast: true, auto-fix: false]
119-
# - gci # Gci control golang package import order and make it always deterministic. [fast: true, auto-fix: true]
120-
# - gochecknoglobals # check that no global variables exist [fast: true, auto-fix: false]
121-
# - gocognit # Computes and checks the cognitive complexity of functions [fast: true, auto-fix: false]
122-
# - goconst # Finds repeated strings that could be replaced by a constant [fast: true, auto-fix: false]
123-
# - godox # Tool for detection of FIXME, TODO and other comment keywords [fast: true, auto-fix: false]
124-
# - gomnd # An analyzer to detect magic numbers. [fast: true, auto-fix: false]
125-
# - goerr113 # Golang linter to check the errors handling expressions [fast: false, auto-fix: false]
126-
# - gofumpt # Gofumpt checks whether code was gofumpt-ed. [fast: true, auto-fix: true]
127-
# - goheader # Checks is file header matches to pattern [fast: true, auto-fix: false]
128-
# - gomoddirectives # Manage the use of 'replace', 'retract', and 'excludes' directives in go.mod. [fast: true, auto-fix: false]
129-
# - gomodguard # Allow and block list linter for direct Go module dependencies. This is different from depguard where there are different block types for example version constraints and module recommendations. [fast: true, auto-fix: false]
130-
# - importas # Enforces consistent import aliases [fast: false, auto-fix: false]
131-
# - interfacer # Linter that suggests narrower interface types [fast: false, auto-fix: false]
132-
# - lll # Reports long lines [fast: true, auto-fix: false]
133-
# - makezero # Finds slice declarations with non-zero initial length [fast: false, auto-fix: false]
134-
# - maligned # Tool to detect Go structs that would take less memory if their fields were sorted [fast: false, auto-fix: false]
135-
# - nestif # Reports deeply nested if statements [fast: true, auto-fix: false]
136-
# - nilerr # Finds the code that returns nil even if it checks that the error is not nil. [fast: false, auto-fix: false]
137-
# - nlreturn # nlreturn checks for a new line before return and branch statements to increase code clarity [fast: true, auto-fix: false]
138-
# - noctx # noctx finds sending http request without context.Context [fast: false, auto-fix: false]
139-
# - paralleltest # paralleltest detects missing usage of t.Parallel() method in your Go test [fast: true, auto-fix: false]
140-
# - prealloc # Finds slice declarations that could potentially be preallocated [fast: true, auto-fix: false]
141-
# - predeclared # find code that shadows one of Go's predeclared identifiers [fast: true, auto-fix: false]
142-
# - promlinter # Check Prometheus metrics naming via promlint [fast: true, auto-fix: false]
143-
# - scopelint # Scopelint checks for unpinned variables in go programs [fast: true, auto-fix: false]
144-
# - sqlclosecheck # Checks that sql.Rows and sql.Stmt are closed. [fast: false, auto-fix: false]
145-
# - structcheck # Finds unused struct fields [fast: false, auto-fix: false]
146-
# - testpackage # linter that makes you use a separate _test package [fast: true, auto-fix: false]
147-
# - tparallel # tparallel detects inappropriate usage of t.Parallel() method in your Go test codes [fast: false, auto-fix: false]
148-
# - wastedassign # wastedassign finds wasted assignment statements. [fast: false, auto-fix: false]
149-
# - wrapcheck # Checks that errors returned from external packages are wrapped [fast: false, auto-fix: false]
150-
# - wsl # Whitespace Linter - Forces you to use empty lines! [fast: true, auto-fix: false]
151-
# - varcheck # Finds unused global variables and constants [fast: false, auto-fix: false]
152-
# - ifshort # Checks that your code uses short syntax for if-statements whenever possible [fast: true, auto-fix: false]

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
SOURCE_FILES?=./...
2-
GOLANGCI_VERSION=v1.59.0
2+
GOLANGCI_VERSION=v1.64.7
33
GOIMPORTS_VERSION=v0.21.0
44
COVERAGE=coverage.out
55

examples/go.mod

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module go.mongodb.org/atlas-sdk/v20250219001/examples
22

3-
go 1.22.0
3+
go 1.23.0
44

5-
toolchain go1.23.1
5+
toolchain go1.24.1
66

77
replace go.mongodb.org/atlas-sdk/v20250219001 => ../
88

@@ -12,13 +12,12 @@ require (
1212
go.mongodb.org/atlas-sdk/v20250219001 v20250219001.1.0
1313
)
1414

15-
require golang.org/x/oauth2 v0.25.0 // indirect
16-
1715
require (
1816
github.com/davecgh/go-spew v1.1.1 // indirect
1917
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
2018
github.com/pmezard/go-difflib v1.0.0 // indirect
2119
github.com/stretchr/objx v0.5.2 // indirect
2220
github.com/stretchr/testify v1.10.0
21+
golang.org/x/oauth2 v0.28.0 // indirect
2322
gopkg.in/yaml.v3 v3.0.1 // indirect
2423
)

examples/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=
2222
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
2323
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
2424
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
25-
golang.org/x/oauth2 v0.25.0 h1:CY4y7XT9v0cRI9oupztF8AgiIu99L/ksR/Xp/6jrZ70=
26-
golang.org/x/oauth2 v0.25.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
25+
golang.org/x/oauth2 v0.28.0 h1:CrgCKl8PPAVtLnU3c+EDw6x11699EWlsDeWNWKdIOkc=
26+
golang.org/x/oauth2 v0.28.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8=
2727
golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y=
2828
golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
2929
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=

go.mod

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
module go.mongodb.org/atlas-sdk/v20250219001
22

3-
go 1.22.0
3+
go 1.23.0
4+
5+
toolchain go1.23.7
46

57
require (
68
github.com/go-test/deep v1.1.1
79
github.com/mongodb-forks/digest v1.1.0
8-
golang.org/x/oauth2 v0.25.0
10+
github.com/stretchr/testify v1.10.0
11+
golang.org/x/oauth2 v0.28.0
912
)
1013

1114
require (
1215
github.com/davecgh/go-spew v1.1.1 // indirect
1316
github.com/pmezard/go-difflib v1.0.0 // indirect
1417
github.com/stretchr/objx v0.5.2 // indirect
15-
github.com/stretchr/testify v1.10.0
1618
gopkg.in/yaml.v3 v3.0.1 // indirect
1719
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=
1212
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
1313
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
1414
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
15-
golang.org/x/oauth2 v0.25.0 h1:CY4y7XT9v0cRI9oupztF8AgiIu99L/ksR/Xp/6jrZ70=
16-
golang.org/x/oauth2 v0.25.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
15+
golang.org/x/oauth2 v0.28.0 h1:CrgCKl8PPAVtLnU3c+EDw6x11699EWlsDeWNWKdIOkc=
16+
golang.org/x/oauth2 v0.28.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8=
1717
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
1818
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
1919
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=

0 commit comments

Comments
 (0)