Skip to content

Commit

Permalink
upgrade golang to 1.21.9
Browse files Browse the repository at this point in the history
  • Loading branch information
karimra committed Apr 24, 2024
1 parent 2b7d788 commit c7ed2a6
Show file tree
Hide file tree
Showing 17 changed files with 425 additions and 617 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
# - "!releases/**"

env:
GOVER: 1.21.1
GOVER: 1.21.9

jobs:
lint:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
tags:
- v*
env:
GOVER: 1.21.1
GOVER: 1.21.9
GORELEASER_VER: v1.19.2

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
- "main"
- "!releases/**"
env:
GOVER: 1.21.1
GOVER: 1.21.9

jobs:
test:
Expand Down
10 changes: 5 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

linters-settings:
govet:
check-shadowing: true
# check-shadowing: true
enable:
- fieldalignment
gocyclo:
Expand All @@ -21,7 +21,7 @@ linters-settings:
lll:
line-length: 140
nolintlint:
allow-leading-space: true # don't require machine-readable nolint directives (i.e. with no leading space)
# allow-leading-space: true # don't require machine-readable nolint directives (i.e. with no leading space)
allow-unused: false # report any unused nolint directives
require-explanation: false # don't require an explanation for nolint directives
require-specific: false # don't require nolint directives to be specific about which linter is being skipped
Expand All @@ -31,8 +31,8 @@ linters:
enable:
- asciicheck
- bodyclose
- deadcode
- depguard
# - deadcode
# - depguard
- dogsled
# - dupl
# - errcheck
Expand Down Expand Up @@ -76,7 +76,7 @@ linters:
# - unconvert
# - unparam
- unused
- varcheck
# - varcheck
# - whitespace
# - wsl

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# SPDX-License-Identifier: Apache-2.0

FROM golang:1.21.1 as builder
FROM golang:1.21.9 as builder
ADD . /build
WORKDIR /build
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o gnmic .
Expand Down
Loading

0 comments on commit c7ed2a6

Please sign in to comment.