diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 68e3bde2..c49dbd8b 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,7 +1,7 @@ { "$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.base.schema.json", "name": "default", - "image": "golang:1.22-bookworm", + "image": "golang:1.23-bookworm", "features": { "ghcr.io/guiyomh/features/golangci-lint:0": {}, "ghcr.io/devcontainers/features/github-cli:1": {}, diff --git a/Dockerfile b/Dockerfile index ad542169..dfade8e7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # syntax=docker/dockerfile:1 # -✂- this stage is used to develop and build the application locally ------------------------------------------------- -FROM docker.io/library/golang:1.22-bookworm AS develop +FROM docker.io/library/golang:1.23-bookworm AS develop # use the /var/tmp/go as the GOPATH to reuse the modules cache ENV GOPATH="/var/tmp/go" diff --git a/go.mod b/go.mod index bcf11a44..d934c539 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module gh.tarampamp.am/error-pages -go 1.22 +go 1.23 require ( github.com/stretchr/testify v1.9.0 diff --git a/internal/cli/perftest/command.go b/internal/cli/perftest/command.go index 73dd6791..7ed1c9f3 100644 --- a/internal/cli/perftest/command.go +++ b/internal/cli/perftest/command.go @@ -81,7 +81,7 @@ func NewCommand() *cli.Command { //nolint:funlen Name: "connections", Aliases: []string{"c"}, Usage: "Number of connections to keep open", - Value: max(16, uint64(runtime.NumCPU()*25)), //nolint:mnd,gosec + Value: max(16, uint64(runtime.NumCPU()*25)), //nolint:gosec,mnd Validator: func(u uint64) error { if u == 0 { return errors.New("threads number can't be zero")