Skip to content

Commit

Permalink
feat: update tools versions
Browse files Browse the repository at this point in the history
  • Loading branch information
JGiola committed Jun 3, 2024
1 parent 2096ad5 commit 62b7470
Show file tree
Hide file tree
Showing 12 changed files with 50 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
21 changes: 21 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: /
Expand All @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
- examples/**

env:
GORELEASER_VERSION: v1.25.1
GORELEASER_VERSION: v1.26.1
jobs:
lint:
name: Lint Code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .go-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.22.2
1.22.3
17 changes: 15 additions & 2 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -48,7 +61,7 @@ linters-settings:
all: true
unparam:
check-exported: false
gomnd:
mnd:
checks:
- case
- condition
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion tools/GOLANGCI_LINT_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.57.2
v1.58.1
2 changes: 1 addition & 1 deletion tools/GORELEASER_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.25.1
v1.26.1
3 changes: 2 additions & 1 deletion tools/make/generate.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 62b7470

Please sign in to comment.