chore(deps): update golangci-lint to 2.6.0 (#1737)

This commit is contained in:
kolaente
2025-10-31 17:28:52 +00:00
committed by GitHub
parent 15cba4cd27
commit 541a38456e
8 changed files with 17 additions and 18 deletions

View File

@@ -76,7 +76,7 @@ jobs:
- name: golangci-lint - name: golangci-lint
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8 uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8
with: with:
version: v2.4.0 version: v2.6.0
api-check-translations: api-check-translations:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@@ -3,10 +3,10 @@
"devenv": { "devenv": {
"locked": { "locked": {
"dir": "src/modules", "dir": "src/modules",
"lastModified": 1757511008, "lastModified": 1761922975,
"owner": "cachix", "owner": "cachix",
"repo": "devenv", "repo": "devenv",
"rev": "241280d58ecd6282b239b259afae9f7ba61c02be", "rev": "c9f0b47815a4895fadac87812de8a4de27e0ace1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -19,10 +19,10 @@
"flake-compat": { "flake-compat": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1747046372, "lastModified": 1761588595,
"owner": "edolstra", "owner": "edolstra",
"repo": "flake-compat", "repo": "flake-compat",
"rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885", "rev": "f387cd2afec9419c8ee37694406ca490c3f34ee5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -40,10 +40,10 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1757239681, "lastModified": 1760663237,
"owner": "cachix", "owner": "cachix",
"repo": "git-hooks.nix", "repo": "git-hooks.nix",
"rev": "ab82ab08d6bf74085bd328de2a8722c12d97bd9d", "rev": "ca5b894d3e3e151ffc1db040b6ce4dcc75d31c37",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -74,10 +74,10 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1755783167, "lastModified": 1761313199,
"owner": "cachix", "owner": "cachix",
"repo": "devenv-nixpkgs", "repo": "devenv-nixpkgs",
"rev": "4a880fb247d24fbca57269af672e8f78935b0328", "rev": "d1c30452ebecfc55185ae6d1c983c09da0c274ff",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -89,10 +89,10 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1757347588, "lastModified": 1761672384,
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b599843bad24621dcaa5ab60dac98f9b0eb1cabe", "rev": "08dacfca559e1d7da38f3cf05f1f45ee9bfd213c",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -15,7 +15,6 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
//go:build mage //go:build mage
// +build mage
package main package main

View File

@@ -88,7 +88,8 @@ func TestBulkTask_Update(t *testing.T) {
err = bt.Update(s, u) err = bt.Update(s, u)
require.Error(t, err) require.Error(t, err)
assert.IsType(t, ErrInvalidTaskColumn{}, err) var expectedErr ErrInvalidTaskColumn
assert.ErrorAs(t, err, &expectedErr)
}) })
t.Run("update done_at when bulk marking tasks done", func(t *testing.T) { t.Run("update done_at when bulk marking tasks done", func(t *testing.T) {
@@ -132,6 +133,7 @@ func TestBulkTask_Update(t *testing.T) {
err := bt.Update(s, u) err := bt.Update(s, u)
require.Error(t, err) require.Error(t, err)
assert.IsType(t, ErrInvalidTaskColumn{}, err) var expectedErr ErrInvalidTaskColumn
assert.ErrorAs(t, err, &expectedErr)
}) })
} }

View File

@@ -413,6 +413,7 @@ func TestMergeClaims(t *testing.T) {
// Verify error is returned for missing email // Verify error is returned for missing email
require.Error(t, err) require.Error(t, err)
assert.IsType(t, &user.ErrNoOpenIDEmailProvided{}, err) var expectedErr *user.ErrNoOpenIDEmailProvided
assert.ErrorAs(t, err, &expectedErr)
}) })
} }

View File

@@ -15,7 +15,6 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
//go:build !windows //go:build !windows
// +build !windows
package utils package utils

View File

@@ -15,7 +15,6 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
//go:build windows //go:build windows
// +build windows
package utils package utils

View File

@@ -15,7 +15,6 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
//go:build tools //go:build tools
// +build tools
package tools package tools