Skip to content

Commit

Permalink
feat: update tools and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
JGiola committed Jun 3, 2024
1 parent a392ce0 commit 8f8d361
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 16 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
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]

- fixed `delete-before-apply` annotation behaviour to call namespace-scoped API
- update to go 1.22.3

## [1.2.3] - 2023-08-24

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/mlp

go 1.22.2
go 1.22.3

require (
github.com/MakeNowJust/heredoc/v2 v2.0.1
Expand Down
1 change: 0 additions & 1 deletion pkg/deploy/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ func prepareResources(deployType string, resources []resourceutil.Resource, curr
utils.CheckError(err, "error preparing resources")

for _, res := range resources {
res := res
if res.GroupVersionKind.Kind != deploymentKind && res.GroupVersionKind.Kind != cronJobKind {
continue
}
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
8 changes: 4 additions & 4 deletions tools/make/generate.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

##@ Deepcopy Goals

.PHONY: generate
generate:
go generate -x -ldflags "$(GO_LDFLAGS)" ./...

.PHONY: generate-deps
generate-deps:

.PHONY: generate
generate: generate-deps
go generate -x -ldflags "$(GO_LDFLAGS)" ./...

0 comments on commit 8f8d361

Please sign in to comment.