Skip to content

Commit e121c50

Browse files
committed
Update Go toolchain to 1.26
1 parent 072d796 commit e121c50

6 files changed

Lines changed: 60 additions & 54 deletions

File tree

.github/workflows/release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
- name: Set up Go
1616
uses: actions/setup-go@v1
1717
with:
18-
go-version: 1.24.x
18+
go-version: 1.26.x
1919
- name: Run GoReleaser (dry run)
2020
env:
2121
PACKAGE_NAME: github.com/lets-cli/lets
22-
GOLANG_CROSS_VERSION: v1.24
22+
GOLANG_CROSS_VERSION: v1.26
2323
run: |
2424
docker run \
2525
--rm \
@@ -33,7 +33,7 @@ jobs:
3333
- name: Run GoReleaser
3434
env:
3535
PACKAGE_NAME: github.com/lets-cli/lets
36-
GOLANG_CROSS_VERSION: v1.24
36+
GOLANG_CROSS_VERSION: v1.26
3737
run: |
3838
docker run \
3939
--rm \

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup go
2323
uses: actions/setup-go@v2
2424
with:
25-
go-version: 1.24.x
25+
go-version: 1.26.x
2626
- name: Checkout code
2727
uses: actions/checkout@v2
2828
- run: go install gotest.tools/gotestsum@latest

.golangci.yaml

Lines changed: 52 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,63 @@
1+
version: "2"
12
run:
3+
go: "1.26"
24
tests: false
3-
go: "1.23"
4-
55
linters:
6-
enable-all: true
6+
default: all
77
disable:
8-
- typecheck
9-
- gomoddirectives
108
- containedctx
11-
- gochecknoglobals
12-
- goimports
13-
- funlen
14-
- godox
15-
- maligned
16-
- goerr113
17-
- exhaustivestruct
18-
- wrapcheck
19-
- prealloc # enable it sometimes
20-
- wsl
21-
- ifshort
22-
- unparam
9+
- copyloopvar
2310
- cyclop
24-
- gocyclo
11+
- depguard
12+
- err113
13+
- exhaustive
14+
- exhaustruct
15+
- forcetypeassert
16+
- funlen
17+
- funcorder
18+
- gochecknoglobals
2519
- gocognit
26-
- tagliatelle
27-
- nestif
28-
- nlreturn
20+
- gocritic
21+
- gocyclo
22+
- godoclint
23+
- godox
24+
- gomoddirectives
2925
- goprintffuncname
30-
- exhaustruct
31-
- wastedassign
26+
- gosec
27+
- importas
28+
- lll
29+
- mnd
30+
- musttag
31+
- nestif
3232
- nilnil
33+
- noctx
34+
- noinlineerr
35+
- nlreturn
36+
- prealloc
3337
- recvcheck
34-
- musttag
35-
- mnd
36-
- lll
37-
- gocritic
38-
- forcetypeassert
39-
- exhaustive
40-
- depguard
4138
- revive
42-
- gosec
43-
- copyloopvar
44-
45-
linters-settings:
46-
lll:
47-
line-length: 120
48-
varnamelen:
49-
min-name-length: 1
50-
51-
issues:
52-
exclude-rules:
53-
- path: _test\.go
54-
linters:
55-
- gomnd
56-
- path: set\.go
57-
linters:
58-
- typecheck
39+
- tagliatelle
40+
- unparam
41+
- wastedassign
42+
- wrapcheck
43+
- wsl
44+
settings:
45+
lll:
46+
line-length: 120
47+
varnamelen:
48+
min-name-length: 1
49+
exclusions:
50+
generated: lax
51+
presets:
52+
- comments
53+
- common-false-positives
54+
- legacy
55+
- std-error-handling
56+
rules:
57+
- linters:
58+
- mnd
59+
path: _test\.go
60+
paths:
61+
- third_party$
62+
- builtin$
63+
- examples$

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.24-bookworm AS builder
1+
FROM golang:1.26-bookworm AS builder
22

33
ENV GOPROXY=https://proxy.golang.org
44
ENV CGO_ENABLED=1
@@ -26,6 +26,6 @@ COPY go.sum .
2626

2727
RUN go mod download
2828

29-
FROM golangci/golangci-lint:v1.64.7-alpine AS linter
29+
FROM golangci/golangci-lint:v2.11.3-alpine AS linter
3030

3131
RUN mkdir -p /.cache && chmod -R 777 /.cache

docs/docs/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ title: Changelog
55

66
## [Unreleased](https://github.com/lets-cli/lets/releases/tag/v0.0.X)
77

8+
* `[Dependency]` update go to `1.26`
89
* `[Added]` Show similar command suggestions on typos.
910
* `[Changed]` Exit code 2 on unknown command.
1011
* `[Added]` Expose `LETS_OS` and `LETS_ARCH` environment variables at command runtime.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/lets-cli/lets
22

3-
go 1.24
3+
go 1.26
44

55
require (
66
github.com/codeclysm/extract v2.2.0+incompatible

0 commit comments

Comments
 (0)