Skip to content

Commit 0a99c85

Browse files
chore: upgrade Go version to 1.25 across workflows and update related configurations (#564)
1 parent 00f3f2d commit 0a99c85

23 files changed

+49
-42
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ${{ matrix.os }}
1919
strategy:
2020
matrix:
21-
go_version: ['1.24']
21+
go_version: ['1.25']
2222
os: [ubuntu-latest, windows-latest, macos-latest]
2323
env:
2424
OS: ${{ matrix.os }}

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: Set up Go (latest version)
5454
uses: actions/setup-go@v5
5555
with:
56-
go-version: '>=1.24.0'
56+
go-version: '>=1.25.0'
5757
check-latest: true
5858

5959
# Initializes the CodeQL tools for scanning.

.github/workflows/doc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Set up Go
2727
uses: actions/setup-go@v5
2828
with:
29-
go-version: ~1.24
29+
go-version: ~1.25
3030

3131
- name: Check configuration snippets in documentation
3232
run: go run ./config/checkdoc -r docs/content -i changelog.md

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Set up Go
2525
uses: actions/setup-go@v5
2626
with:
27-
go-version: ~1.24
27+
go-version: ~1.25
2828
check-latest: true
2929

3030
- name: Set up QEMU

.github/workflows/release-doc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set up Go
2020
uses: actions/setup-go@v5
2121
with:
22-
go-version: ~1.24
22+
go-version: ~1.25
2323

2424
- name: Check configuration snippets in documentation
2525
run: go run ./config/checkdoc -r docs/content -i changelog.md

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Set up Go
2121
uses: actions/setup-go@v5
2222
with:
23-
go-version: ~1.24
23+
go-version: ~1.25
2424
check-latest: true
2525

2626
- name: Set up QEMU

.github/workflows/snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set up Go
2020
uses: actions/setup-go@v5
2121
with:
22-
go-version: ~1.24
22+
go-version: ~1.25
2323
check-latest: true
2424

2525
- name: Set up QEMU

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ linters:
2222
- gocheckcompilerdirectives
2323
- gochecksumtype
2424
# - gocritic
25-
# - godoclint
25+
- godoclint
2626
- goheader
2727
- gomoddirectives
2828
- gosec

commands_display.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ func (l *lineLengthWriter) Write(p []byte) (n int, err error) {
398398
n += written + 1
399399

400400
_, _ = l.writer.Write(l.tokens[1:]) // write break (instead of WS at lastWhiteIndex)
401-
for j := 0; j < l.breakLength; j++ {
401+
for range l.breakLength {
402402
_, _ = l.writer.Write(l.tokens[0:1]) // fill spaces for alignment
403403
}
404404

darwin/calendar_interval.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (c *CalendarInterval) clone() *CalendarInterval {
3636
return clone
3737
}
3838

39-
// getCalendarIntervalsFromSchedules converts schedules into launchd calendar events
39+
// GetCalendarIntervalsFromSchedules converts schedules into launchd calendar events
4040
// let's say we've setup these rules:
4141
//
4242
// Mon-Fri *-*-* *:0,30:00 = every half hour
@@ -114,7 +114,7 @@ func setCalendarIntervalValueFromType(entry *CalendarInterval, value int, typeVa
114114
}
115115
}
116116

117-
// parseCalendarIntervals converts calendar intervals into a single calendar event.
117+
// ParseCalendarIntervals converts calendar intervals into a single calendar event.
118118
// TODO: find a pattern on how to split into multiple events when needed
119119
func ParseCalendarIntervals(intervals []CalendarInterval) []string {
120120
event := calendar.NewEvent(func(e *calendar.Event) {

0 commit comments

Comments
 (0)