Skip to content

Commit 88b8ab8

Browse files
chore(deps): Update github-actions (#2469)
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/setup-go](https://redirect.github.com/actions/setup-go) ([changelog](https://redirect.github.com/actions/setup-go/compare/4b73464bb391d4059bd26b0524d20df3927bd417..4a3601121dd01d1626a1e23e37211e3254c1c06c)) | action | digest | `4b73464` → `4a36011` | | errata-ai/vale-action | action | digest | `dcded78` → `0135b9f` | | [golangci/golangci-lint](https://redirect.github.com/golangci/golangci-lint) | uses-with | minor | `v2.10.1` → `v2.11.4` | --- ### Release Notes <details> <summary>golangci/golangci-lint (golangci/golangci-lint)</summary> ### [`v2.11.4`](https://redirect.github.com/golangci/golangci-lint/blob/HEAD/CHANGELOG.md#v2114) [Compare Source](https://redirect.github.com/golangci/golangci-lint/compare/v2.11.3...v2.11.4) *Released on 2026-03-22* 1. Linters bug fixes - `govet-modernize`: from 0.42.0 to 0.43.0 - `noctx`: from 0.5.0 to 0.5.1 - `sqlclosecheck`: from 0.5.1 to 0.6.0 ### [`v2.11.3`](https://redirect.github.com/golangci/golangci-lint/blob/HEAD/CHANGELOG.md#v2113) [Compare Source](https://redirect.github.com/golangci/golangci-lint/compare/v2.11.2...v2.11.3) *Released on 2026-03-10* 1. Linters bug fixes - `gosec`: from v2.24.7 to [`619ce21`](https://redirect.github.com/golangci/golangci-lint/commit/619ce2117e08) ### [`v2.11.2`](https://redirect.github.com/golangci/golangci-lint/blob/HEAD/CHANGELOG.md#v2112) [Compare Source](https://redirect.github.com/golangci/golangci-lint/compare/v2.11.1...v2.11.2) *Released on 2026-03-07* 1. Fixes - `fmt`: fix error when using the `fmt` command with explicit paths. ### [`v2.11.1`](https://redirect.github.com/golangci/golangci-lint/blob/HEAD/CHANGELOG.md#v2111) [Compare Source](https://redirect.github.com/golangci/golangci-lint/compare/v2.11.0...v2.11.1) *Released on 2026-03-06* Due to an error related to AUR, some artifacts of the v2.11.0 release have not been published. This release contains the same things as v2.11.0. ### [`v2.11.0`](https://redirect.github.com/golangci/golangci-lint/blob/HEAD/CHANGELOG.md#v2110) [Compare Source](https://redirect.github.com/golangci/golangci-lint/compare/v2.10.1...v2.11.0) *Released on 2026-03-06* 1. Linters new features or changes - `errcheck`: from 1.9.0 to 1.10.0 (exclude `crypto/rand.Read` by default) - `gosec`: from 2.23.0 to 2.24.6 (new rules: `G113`, `G118`, `G119`, `G120`, `G121`, `G122`, `G123`, `G408`, `G707`) - `noctx`: from 0.4.0 to 0.5.0 (new detection: `httptest.NewRequestWithContext`) - `prealloc`: from 1.0.2 to 1.1.0 - `revive`: from 1.14.0 to 1.15.0 (⚠️ Breaking change: package-related checks moved from `var-naming` to a new rule `package-naming`) 2. Linters bug fixes - `gocognit`: from 1.2.0 to 1.2.1 - `gosec`: from 2.24.6 to 2.24.7 - `unqueryvet`: from 1.5.3 to 1.5.4 </details> --- ### Configuration 📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM, on day 1 of the month ( * 0-3 1 * * ) (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://redirect.github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My42My4wIiwidXBkYXRlZEluVmVyIjoiNDMuNjMuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiYXV0b21lcmdlIl19-->
1 parent 53d5055 commit 88b8ab8

File tree

9 files changed

+24
-20
lines changed

9 files changed

+24
-20
lines changed

.github/workflows/gen_coverage_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
token: ${{ steps.app-token.outputs.token }}
3232
- name: Set up Go 1.x
3333
id: setup-go
34-
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6
34+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
3535
with:
3636
go-version: "1.26"
3737
cache: false

.github/workflows/go_mod_tidy_examples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
token: ${{ steps.app-token.outputs.token }}
3030
- name: Set up Go 1.x
3131
id: setup-go
32-
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6
32+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
3333
with:
3434
go-version-file: go.mod
3535
cache: false

.github/workflows/lint_golang.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
timeout-minutes: 10
1818
steps:
1919
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
20-
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6
20+
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
2121
id: setup-go
2222
with:
2323
go-version-file: go.mod
@@ -35,4 +35,4 @@ jobs:
3535
- name: golangci-lint
3636
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9
3737
with:
38-
version: v2.10.1
38+
version: v2.11.4

.github/workflows/lint_markdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
python3 -m venv "$venv"
2222
echo "$venv/bin" >> $GITHUB_PATH
2323
- name: Vale
24-
uses: errata-ai/vale-action@dcded780f1ff68e2558e802a165a484a4a3e2fb8
24+
uses: errata-ai/vale-action@0135b9fe2b3107365569cc3142b9a1c85221ea2f
2525
with:
2626
vale_flags: "--glob=!{docs/testdata/*,CHANGELOG.md,.github/styles/proselint/README.md,examples/simple_plugin/docs/*.md,coverage.md}"
2727
filter_mode: nofilter

.github/workflows/unittest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2323
- name: Set up Go 1.x
2424
id: setup-go
25-
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6
25+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
2626
with:
2727
go-version-file: go.mod
2828
cache: false

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ linters:
8888
disabled: true
8989
- name: use-waitgroup-go
9090
disabled: true
91+
- name: package-naming
92+
disabled: true
9193
exclusions:
9294
generated: lax
9395
presets:

docs/generator.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package docs
22

33
import (
4+
"cmp"
45
"embed"
56
"fmt"
67
"os"
78
"regexp"
8-
"sort"
9+
"slices"
910

1011
"github.com/cloudquery/plugin-sdk/v4/caser"
1112
"github.com/cloudquery/plugin-sdk/v4/schema"
@@ -87,8 +88,8 @@ func DefaultTitleTransformer(table *schema.Table) string {
8788
}
8889

8990
func sortTables(tables schema.Tables) {
90-
sort.SliceStable(tables, func(i, j int) bool {
91-
return tables[i].Name < tables[j].Name
91+
slices.SortStableFunc(tables, func(a, b *schema.Table) int {
92+
return cmp.Compare(a.Name, b.Name)
9293
})
9394

9495
for _, table := range tables {

plugin/sort.go

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
package plugin
22

33
import (
4-
"sort"
4+
"cmp"
5+
"slices"
56

67
"github.com/apache/arrow-go/v18/arrow"
78
"github.com/apache/arrow-go/v18/arrow/array"
@@ -18,16 +19,16 @@ func sortRecords(table *schema.Table, records []arrow.RecordBatch, columnName st
1819
panic("table has no '" + columnName + "' column to sort on")
1920
}
2021
colIndex := sch.FieldIndices(columnName)[0]
21-
sort.Slice(records, func(i, j int) bool {
22-
switch records[i].Column(colIndex).DataType().(type) {
22+
slices.SortFunc(records, func(a, b arrow.RecordBatch) int {
23+
switch a.Column(colIndex).DataType().(type) {
2324
case *arrow.Int64Type:
24-
v1 := records[i].Column(colIndex).(*array.Int64).Value(0)
25-
v2 := records[j].Column(colIndex).(*array.Int64).Value(0)
26-
return v1 < v2
25+
v1 := a.Column(colIndex).(*array.Int64).Value(0)
26+
v2 := b.Column(colIndex).(*array.Int64).Value(0)
27+
return cmp.Compare(v1, v2)
2728
case *arrow.StringType:
28-
v1 := records[i].Column(colIndex).(*array.String).Value(0)
29-
v2 := records[j].Column(colIndex).(*array.String).Value(0)
30-
return v1 < v2
29+
v1 := a.Column(colIndex).(*array.String).Value(0)
30+
v2 := b.Column(colIndex).(*array.String).Value(0)
31+
return cmp.Compare(v1, v2)
3132
default:
3233
panic("unsupported type for sorting")
3334
}

writers/writers_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"math/rand"
66
"runtime"
7-
"sort"
7+
"slices"
88
"strconv"
99
"testing"
1010

@@ -144,7 +144,7 @@ func writerMatrix[T writers.Writer, C any, O ~func(T)](prefix string, constructo
144144
bCases := make([]bCase, 0, len(optsMatrix))
145145

146146
k := maps.Keys(optsMatrix)
147-
sort.Strings(k)
147+
slices.Sort(k)
148148

149149
for _, name := range k {
150150
opts := optsMatrix[name]

0 commit comments

Comments
 (0)