diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 19f17af..9cca010 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,10 +1,10 @@ { "name": "Go", - "image": "golang:1.22.2", + "image": "golang:1.22.3", "containerUser": "root", "features": { "ghcr.io/devcontainers/features/common-utils:2": {}, - "ghcr.io/devcontainers/features/go:1": {"version": "none", "golangciLintVersion": "1.57.2"} + "ghcr.io/devcontainers/features/go:1": {"version": "none", "golangciLintVersion": "1.58.1"} }, "runArgs": [ "--cap-add=SYS_PTRACE", diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 6e87a0a..a472e61 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,12 +6,26 @@ updates: directory: / schedule: interval: monthly + timezone: Europe/Rome + groups: + minor-actions-dependencies: + update-types: + - minor + - patch + commit-message: + include: scope + prefix: ci # keep up to date the base docker image - package-ecosystem: docker directory: / schedule: interval: daily + time: "07:00" + timezone: Europe/Rome + commit-message: + include: scope + prefix: build # enable go dependencies security updates - directory: / @@ -22,9 +36,16 @@ updates: interval: daily time: "07:00" timezone: Europe/Rome + commit-message: + include: scope + prefix: chore # keep up to date devcontainers - package-ecosystem: devcontainers directory: "/" schedule: interval: monthly + timezone: Europe/Rome + commit-message: + include: scope + prefix: build diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 031dafb..b37c41f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -14,7 +14,7 @@ on: - examples/** env: - GORELEASER_VERSION: v1.25.1 + GORELEASER_VERSION: v1.26.1 jobs: lint: name: Lint Code diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index f193c4c..bb6c10c 100644 --- a/.github/workflows/codeql.yaml +++ b/.github/workflows/codeql.yaml @@ -16,7 +16,7 @@ on: - cron: 0 5 * * 1 # Run every monday at 5 UTC env: - GORELEASER_VERSION: v1.25.1 + GORELEASER_VERSION: v1.26.1 jobs: codeql: diff --git a/.go-version b/.go-version index 6fee2fe..89144db 100644 --- a/.go-version +++ b/.go-version @@ -1 +1 @@ -1.22.2 +1.22.3 diff --git a/.golangci.yaml b/.golangci.yaml index 31cbc99..f2d7afb 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -5,24 +5,37 @@ run: - integration linters: + disable-all: true enable: - asasalint - asciicheck + - bidichk - bodyclose + - copyloopvar + - decorder + - dogsled + - durationcheck + - errcheck + - errname + - fatcontext - goconst - gocritic - gocyclo - gofmt - goheader - goimports - - gomnd + - mnd - gosec + - gosimple - gosmopolitan + - govet + - ineffassign - misspell - nolintlint - prealloc - predeclared - revive + - staticcheck - tagliatelle - tenv - thelper @@ -48,7 +61,7 @@ linters-settings: all: true unparam: check-exported: false - gomnd: + mnd: checks: - case - condition diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 80d338e..b38bfa6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: language: system pass_filenames: false - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: check-case-conflict name: Check filename case conflicts @@ -30,7 +30,7 @@ repos: name: Trims trailing whitespace args: [--markdown-linebreak-ext=md] # add exception for markdown linebreaks - repo: https://github.com/gitleaks/gitleaks - rev: v8.18.2 + rev: v8.18.3 hooks: - id: gitleaks name: Protect and discover secrets using Gitleaks diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a1bc7d..6eed406 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +- update go version to 1.22.3 + ## [v0.9.0] - 2023-02-08 ### Added diff --git a/go.mod b/go.mod index de4e4c7..1c90488 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/mia-platform/vab -go 1.22.2 +go 1.22.3 require ( github.com/dchest/uniuri v1.2.0 diff --git a/tools/GOLANGCI_LINT_VERSION b/tools/GOLANGCI_LINT_VERSION index 37b41a8..1c55d04 100644 --- a/tools/GOLANGCI_LINT_VERSION +++ b/tools/GOLANGCI_LINT_VERSION @@ -1 +1 @@ -v1.57.2 +v1.58.1 diff --git a/tools/GORELEASER_VERSION b/tools/GORELEASER_VERSION index 9478670..71fa1b8 100644 --- a/tools/GORELEASER_VERSION +++ b/tools/GORELEASER_VERSION @@ -1 +1 @@ -v1.25.1 +v1.26.1 diff --git a/tools/make/generate.mk b/tools/make/generate.mk index 0f197cf..f7a349b 100644 --- a/tools/make/generate.mk +++ b/tools/make/generate.mk @@ -14,10 +14,11 @@ # limitations under the License. ##@ Deepcopy Goals + .PHONY: generate-deps generate-deps: .PHONY: generate generate: generate-deps - go generate ./... + go generate -x -ldflags "$(GO_LDFLAGS)" ./... ${TOOLS_BIN}/deepcopy-gen -i ./pkg/apis/vab.mia-platform.eu/v1alpha1 -o ${PROJECT_DIR} -O zz_generated.deepcopy --go-header-file ${TOOLS_DIR}/boilerplate.go.txt