Skip to content

Commit

Permalink
feat: update tools
Browse files Browse the repository at this point in the history
  • Loading branch information
JGiola committed Sep 12, 2024
1 parent 180126f commit cc586fc
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "Go",
"image": "golang:1.22.5",
"image": "golang:1.23.1",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {"username": "golang"},
"ghcr.io/devcontainers/features/go:1": {"version": "none", "golangciLintVersion": "1.59.1"}
"ghcr.io/devcontainers/features/go:1": {"version": "none", "golangciLintVersion": "1.61.0"}
},
"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: v2.1.0
GORELEASER_VERSION: v2.2.0
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: v2.1.0
GORELEASER_VERSION: v2.2.0

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.5
1.23.1
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ checksum:
name_template: checksums.txt

snapshot:
name_template: "{{ .ShortCommit }}"
version_template: "{{ .ShortCommit }}"

changelog:
sort: asc
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.5
go 1.23.1

require (
github.com/MakeNowJust/heredoc/v2 v2.0.1
Expand Down
4 changes: 4 additions & 0 deletions internal/git/filesgetter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ func TestGetFiles(t *testing.T) {
"filter module files": {
pkgDefinition: v1alpha1.NewModule(t, "category/test-module1/test-flavor1", "1.0.0", false),
expectedFiles: []*File{
{
path: "test-flavor1/file.json",
internalPath: "modules/category/test-module1/test-flavor1/file.json",
},
{
path: "test-flavor1/file1.yaml",
internalPath: "modules/category/test-module1/test-flavor1/file1.yaml",
Expand Down
6 changes: 6 additions & 0 deletions internal/git/test_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ func populateWorktree(t *testing.T, fsys billy.Filesystem) {
assert.NoError(t, err)
err = f.Close()
assert.NoError(t, err)
f, err = fsys.Create("modules/category/test-module1/test-flavor1/file.json")
assert.NoError(t, err)
_, err = f.Write([]byte(`{"key":"file json content"}`))
assert.NoError(t, err)
err = f.Close()
assert.NoError(t, err)
f, err = fsys.Create("modules/category/test-module1/test-flavor2/file1.yaml")
assert.NoError(t, err)
_, err = f.Write([]byte("file1-2-1 content\n"))
Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/sync/sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ var (
"vendors/modules/category/test-module1-v1.0.0/test-flavor1",
"vendors/modules/category/test-module1-v1.0.0/test-flavor1/file1.yaml",
"vendors/modules/category/test-module1-v1.0.0/test-flavor1/file2.yaml",
"vendors/modules/category/test-module1-v1.0.0/test-flavor1/file.json",
"vendors/modules/category/test-module1-v1.0.0/test-flavor2",
"vendors/modules/category/test-module1-v1.0.0/test-flavor2/file1.yaml",
}
Expand Down
2 changes: 1 addition & 1 deletion tools/DEEPCOPY_GEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.30.3
v0.31.1
2 changes: 1 addition & 1 deletion tools/GOLANGCI_LINT_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.59.1
v1.61.0
2 changes: 1 addition & 1 deletion tools/GORELEASER_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.1.0
v2.2.0

0 comments on commit cc586fc

Please sign in to comment.