Skip to content

Commit 4b30330

Browse files
authored
Bump Go to 1.21 (#176)
1 parent e8fb02d commit 4b30330

File tree

5 files changed

+8
-11
lines changed

5 files changed

+8
-11
lines changed

Diff for: .github/workflows/ci.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,14 @@ jobs:
2929
runs-on: ubuntu-22.04
3030
permissions:
3131
contents: read
32-
strategy:
33-
matrix:
34-
go-version: ["1.19", "1.20", "1.21"]
3532
steps:
3633
- name: Checkout Repository
3734
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
3835

3936
- name: Setup Golang Environment
4037
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
4138
with:
42-
go-version: ${{ matrix.go-version }}
39+
go-version-file: go.mod
4340

4441
- name: Run Unit Tests
4542
run: make unit-test

Diff for: .github/workflows/codeql-analysis.yml

+5
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ jobs:
5252
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
5353
# queries: security-extended,security-and-quality
5454

55+
- name: Setup Golang Environment
56+
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
57+
with:
58+
go-version-file: go.mod
59+
5560
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
5661
# If this step fails, then you should remove it and run the build manually (see below)
5762
- name: Autobuild

Diff for: client/nginx.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ import (
99
"io"
1010
"net/http"
1111
"reflect"
12+
"slices"
1213
"strings"
1314
"time"
14-
15-
"golang.org/x/exp/slices"
1615
)
1716

1817
const (

Diff for: go.mod

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
module github.com/nginxinc/nginx-plus-go-client
22

3-
go 1.19
4-
5-
require golang.org/x/exp v0.0.0-20230905200255-921286631fa9
3+
go 1.21.2

Diff for: go.sum

-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 h1:GoHiUyI/Tp2nVkLI2mCxVkOjsbSXD66ic0XW0js0R9g=
2-
golang.org/x/exp v0.0.0-20230905200255-921286631fa9/go.mod h1:S2oDrQGGwySpoQPVqRShND87VCbxmc6bL1Yd2oYrm6k=

0 commit comments

Comments
 (0)