Skip to content

Commit

Permalink
go 1.23 (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
robherley authored Sep 13, 2024
1 parent 55df78f commit b6c00d5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

permissions:
contents: read
checks: write

jobs:
golangci-lint:
Expand All @@ -20,5 +21,5 @@ jobs:
- run: script/install-libtensorflow
- uses: golangci/golangci-lint-action@v6
with:
version: v1.56.2
version: v1.61.0
args: --timeout 3m0s
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=${BUILDPLATFORM} golang:1.22 AS build
FROM --platform=${BUILDPLATFORM} golang:1.23 AS build

ARG TARGETARCH BUILDPLATFORM

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/robherley/snips.sh

go 1.22.5
go 1.23

require (
ariga.io/atlas v0.27.0
Expand Down
2 changes: 1 addition & 1 deletion internal/ssh/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ func (h *SessionHandler) Upload(sesh *UserSession) {
if err := flags.Parse(sesh.Stderr(), sesh.Command()); err != nil {
if !errors.Is(err, flag.ErrHelp) {
log.Warn().Err(err).Msg("invalid user specified flags")
sesh.Error(err, "Error parsing flag", err.Error())
sesh.Error(err, "Error parsing flag", "Error: %q", err.Error())
}
return
}
Expand Down
2 changes: 1 addition & 1 deletion script/lint
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

BINDIR="$(git rev-parse --show-toplevel)"/bin
BINARY=$BINDIR/golangci-lint
GOLANGCI_LINT_VERSION=v1.56.2
GOLANGCI_LINT_VERSION=v1.61.0

if [ ! -f "$BINARY" ]; then
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s "$GOLANGCI_LINT_VERSION"
Expand Down

0 comments on commit b6c00d5

Please sign in to comment.