diff --git a/.goreleaser.yml b/.goreleaser.yml index 2b6f7cf..13baf56 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,4 @@ +version: 2 builds: - main: ./cmd/vault-plugin-auth-jwt-auto-roles/ env: diff --git a/Makefile b/Makefile index 164fb06..ae68404 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ all: start -GOFUMPT_VERSION ?= v0.5.0 -GORELEASER_VERSION ?= 1.20.0 +GOFUMPT_VERSION ?= v0.7.0 +GORELEASER_VERSION ?= 2.4.8 .PHONY: fmt fmt: @@ -15,7 +15,7 @@ test: .PHONY: build build: mkdir -p build/plugins - go run github.com/goreleaser/goreleaser@v$(GORELEASER_VERSION) \ + go run github.com/goreleaser/goreleaser/v2@v$(GORELEASER_VERSION) \ build --clean --snapshot --single-target \ --output build/plugins/vault-plugin-auth-jwt-auto-roles diff --git a/go.mod b/go.mod index 5f1486d..e77d995 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,6 @@ module github.com/statnett/vault-plugin-auth-jwt-auto-roles -go 1.22 - -toolchain go1.23.3 +go 1.23.0 require ( github.com/go-test/deep v1.1.1 diff --git a/internal/jwtauth/role_index_test.go b/internal/jwtauth/role_index_test.go index 4c351ca..2af9b17 100644 --- a/internal/jwtauth/role_index_test.go +++ b/internal/jwtauth/role_index_test.go @@ -2,10 +2,9 @@ package jwtauth import ( "reflect" + "slices" "strings" "testing" - - "slices" ) func TestRoleIndexer(t *testing.T) {