Skip to content

Commit fd74772

Browse files
chore(deps): update dependency go to v1.23.4 (#277)
* chore(deps): update dependency go to v1.23.4 * update to v1.23 Signed-off-by: Mike Mason <[email protected]> --------- Signed-off-by: Mike Mason <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Mike Mason <[email protected]>
1 parent 30735fc commit fd74772

File tree

7 files changed

+13
-9
lines changed

7 files changed

+13
-9
lines changed

.devcontainer/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# [Choice] Go version (use -bullseye variants on local arm64/Apple Silicon): 1, 1.18, 1.17, 1-bullseye, 1.18-bullseye, 1.17-bullseye, 1-buster, 1.18-buster, 1.17-buster
2-
FROM mcr.microsoft.com/vscode/devcontainers/go:1-1.22-bullseye
2+
FROM mcr.microsoft.com/vscode/devcontainers/go:1-1.23-bullseye
33

44
# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
55
ARG NODE_VERSION="none"

.devcontainer/docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ services:
1414
context: .
1515
dockerfile: Dockerfile
1616
args:
17-
VARIANT: 1.22-bullseye
17+
VARIANT: 1.23-bullseye
1818
NODE_VERSION: "none"
1919
command: sleep infinity
2020
# uncomment along with bind volume to use SSH for dev container access

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ NATS_CREDS?=/tmp/user.creds
1717

1818
# Tool Versions
1919
GCI_REPO = github.com/daixiang0/gci
20-
GCI_VERSION = v0.10.1
20+
GCI_VERSION = v0.13.5
2121

2222
GOLANGCI_LINT_REPO = github.com/golangci/golangci-lint
23-
GOLANGCI_LINT_VERSION = v1.59.1
23+
GOLANGCI_LINT_VERSION = v1.62.2
2424

2525
NATS_CLI_REPO = github.com/nats-io/natscli
2626
NATS_CLI_VERSION = v0.0.35

go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module go.infratographer.com/permissions-api
22

3-
go 1.22.5
3+
go 1.23
44

5-
toolchain go1.22.6
5+
toolchain go1.23.4
66

77
require (
88
github.com/authzed/authzed-go v0.14.0

internal/api/roles_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ import (
2525
"go.infratographer.com/permissions-api/internal/types"
2626
)
2727

28-
var contextKeyEngine = struct{}{}
28+
type engineContextKey struct{}
29+
30+
var contextKeyEngine = engineContextKey{}
2931

3032
func TestRoleCreate(t *testing.T) {
3133
ctx := context.Background()

internal/pubsub/subscriber_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ import (
1717
"github.com/stretchr/testify/require"
1818
)
1919

20-
var contextKeyEngine = struct{}{}
20+
type engineContextKey struct{}
21+
22+
var contextKeyEngine = engineContextKey{}
2123

2224
func setupEvents(t *testing.T, engine query.Engine) (*eventtools.TestNats, events.AuthRelationshipPublisher, *Subscriber) {
2325
ctx := context.Background()

internal/testauth/testauth.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func (s *Server) serve(srv *http.Server, listener net.Listener) {
9999

100100
func (s *Server) handleOIDC(c echo.Context) error {
101101
return c.JSON(http.StatusOK, echo.Map{
102-
"jwks_uri": fmt.Sprintf(s.Issuer + "/.well-known/jwks.json"),
102+
"jwks_uri": s.Issuer + "/.well-known/jwks.json",
103103
})
104104
}
105105

0 commit comments

Comments
 (0)