Skip to content

Commit c76ae52

Browse files
Update to Go v1.18 (#308)
1 parent 0f8cce3 commit c76ae52

File tree

8 files changed

+8
-10
lines changed

8 files changed

+8
-10
lines changed

.github/workflows/pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
- name: Install Go
1616
uses: actions/setup-go@v3
1717
with:
18-
go-version: 1.17
18+
go-version: 1.18
1919
- name: lint
2020
uses: golangci/[email protected]
2121
with:
22-
version: v1.45.2
22+
version: v1.48.0
2323

2424
tests-on-unix:
2525
needs: golangci-lint # run after golangci-lint action to not produce duplicated errors

.github/workflows/release-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
golang:
14-
- 1.17
14+
- 1.18
1515
steps:
1616
- name: Checkout repository
1717
uses: actions/checkout@v3

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ linters:
7878
- gosec # Inspects source code for security problems [fast: false, auto-fix: false]
7979
- gosimple # Linter for Go source code that specializes in simplifying a code [fast: false, auto-fix: false]
8080
- govet # Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string [fast: false, auto-fix: false]
81-
- ifshort # Checks that your code uses short syntax for if-statements whenever possible [fast: true, auto-fix: false]
8281
- ineffassign # Detects when assignments to existing variables are not used [fast: true, auto-fix: false]
8382
- misspell # Finds commonly misspelled English words in comments [fast: true, auto-fix: true]
8483
- nakedret # Finds naked returns in functions greater than a specified function length [fast: true, auto-fix: false]
@@ -136,3 +135,4 @@ linters:
136135
# - wastedassign # wastedassign finds wasted assignment statements. [fast: false, auto-fix: false]
137136
# - wrapcheck # Checks that errors returned from external packages are wrapped [fast: false, auto-fix: false]
138137
# - wsl # Whitespace Linter - Forces you to use empty lines! [fast: true, auto-fix: false]
138+
# - ifshort # Checks that your code uses short syntax for if-statements whenever possible [fast: true, auto-fix: false]

GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SOURCE_FILES?=./...
22
PKG_NAME=mongodbatlas
3-
GOLANGCI_VERSION=v1.45.2
3+
GOLANGCI_VERSION=v1.48.0
44
COVERAGE=coverage.out
55

66
export GO111MODULE := on

auth/doc.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,5 @@ NOTE: Using the https://godoc.org/context package, one can easily
3838
pass cancellation signals and deadlines to various services of the client for
3939
handling a request. In case there is no context available, then context.Background()
4040
can be used as a starting point.
41-
42-
4341
*/
4442
package auth

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module go.mongodb.org/atlas
22

3-
go 1.16
3+
go 1.18
44

55
require (
66
github.com/go-test/deep v1.0.8

mongodbatlas/doc.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pass cancellation signals and deadlines to various services of the client for
3333
handling a request. In case there is no context available, then context.Background()
3434
can be used as a starting point.
3535
36-
Authentication
36+
Authentication:
3737
3838
The mongodbatlas library does not directly handle authentication. Instead, when
3939
creating a new client, pass an http.Client that can handle Digest Access authentication for
@@ -61,7 +61,6 @@ you can use it with the digest library using:
6161
orgs, _, err := client.Projects.GetAllProjects(context.Background(), nil)
6262
}
6363
64-
6564
Note that when using an authenticated Client, all calls made by the client will
6665
include the specified tokens. Therefore, authenticated clients should
6766
almost never be shared between different users.

mongodbatlas/ip_info_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14+
1415
package mongodbatlas
1516

1617
import (

0 commit comments

Comments
 (0)