Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
# golangci-lint linter configuration.
# See https://golangci-lint.run/usage/configuration/ for more information.
version: "2"
run:
tests: false
linters:
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
formatters:
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Base stage, used to define the base image reference only once and to contain common tools used in other stages.
FROM docker.io/golang:1.21.4-bookworm@sha256:85aacbed94a248f792beb89198649ddbc730649054b397f8d689e9c4c4cceab7 AS base
FROM docker.io/golang:1.24.2-bookworm@sha256:00eccd446e023d3cd9566c25a6e6a02b90db3e1e0bbe26a48fc29cd96e800901 AS base

# Fix: https://github.com/hadolint/hadolint/wiki/DL4006
# Fix: https://github.com/koalaman/shellcheck/wiki/SC3014
Expand Down Expand Up @@ -36,7 +36,7 @@ RUN \
# Install the Golang protobuf compiler plugin.
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.31.0 && \
# Install the golangci-lint linter.
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.63.4 && \
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.1.2 && \
# Create the non root user and group.
groupadd --gid ${GROUP_ID} ${GROUP_NAME} && \
useradd --uid ${USER_ID} --gid ${GROUP_ID} --create-home ${USER_NAME} && \
Expand Down Expand Up @@ -87,12 +87,12 @@ USER ${USER_NAME}

# Install the VS Code Golang extension dependencies.
RUN go install github.com/cweill/gotests/gotests@v1.6.0 && \
go install github.com/fatih/gomodifytags@v1.16.0 && \
go install github.com/josharian/impl@v1.1.0 && \
go install github.com/fatih/gomodifytags@v1.17.0 && \
go install github.com/josharian/impl@v1.4.0 && \
go install github.com/haya14busa/goplay/cmd/goplay@v1.0.0 && \
go install github.com/go-delve/delve/cmd/dlv@v1.21.2 && \
go install honnef.co/go/tools/cmd/staticcheck@v0.4.6 && \
go install golang.org/x/tools/gopls@v0.14.2
go install github.com/go-delve/delve/cmd/dlv@v1.24.2 && \
go install honnef.co/go/tools/cmd/staticcheck@v0.6.1 && \
go install golang.org/x/tools/gopls@v0.18.1

# Install Oh My Zsh for the non root user.
RUN sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
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/NMFR/sqlc-template

go 1.21.4
go 1.24.2

require (
github.com/Masterminds/sprig/v3 v3.3.0
Expand Down