Skip to content

Commit

Permalink
chore(agent): go tooling update
Browse files Browse the repository at this point in the history
  • Loading branch information
nandor-magyar committed Apr 19, 2024
1 parent 2ccba46 commit f7099ec
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/builder_image_golang.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ permissions:
env:
GITHUB_REGISTRY: ghcr.io
BUILDER_IMAGE_NAME: dyrector-io/dyrectorio/builder-images/golang
VERSION: 2
VERSION: 3
jobs:
build:
runs-on: ubuntu-22.04
Expand Down
15 changes: 6 additions & 9 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
run:
timeout: 5m
skip-dirs:
- internal/cache
linters-settings:
depguard:
rules:
Expand All @@ -19,8 +17,9 @@ linters-settings:
funlen:
lines: 100
statements: 50
gci:
local-prefixes: github.com/golangci/golangci-lint
# gci:
# sections:
# - "prefix()"
goconst:
min-len: 2
min-occurrences: 2
Expand Down Expand Up @@ -50,22 +49,18 @@ linters-settings:
- condition
- return
govet:
check-shadowing: true
enable-all: true
lll:
line-length: 140
maligned:
suggest-new: true
misspell:
locale: US
nolintlint:
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
tenv:
all: true
staticcheck:
go: "1.18"
checks:
- all
linters:
Expand Down Expand Up @@ -123,3 +118,5 @@ issues:
- path: _test\.go
linters:
- gomnd
exclude-dirs:
- internal/cache
2 changes: 1 addition & 1 deletion images/builder-golang/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker.io/library/golang:1.20-alpine3.18
FROM docker.io/library/golang:1.21-alpine3.19

ENV GOLANGCI_LINT_CACHE $GOPATH/cache
ENV GOCACHE $GOPATH/cache
Expand Down

0 comments on commit f7099ec

Please sign in to comment.