Skip to content

Commit 40b8475

Browse files
cq-boterezrokahkodiakhq[bot]
authored
chore(deps): Update dependency golangci/golangci-lint to v2.5.0 (#555)
* chore(deps): Update dependency golangci/golangci-lint to v2.5.0 * style: Lint --------- Co-authored-by: erezrokah <[email protected]> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent 7488669 commit 40b8475

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

.github/workflows/lint_golang.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ jobs:
3434
- name: golangci-lint
3535
uses: golangci/golangci-lint-action@v8
3636
with:
37-
version: v2.4.0
37+
version: v2.5.0
3838
args: --verbose

managedplugin/plugin.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -246,12 +246,10 @@ func (c *Client) execPlugin(ctx context.Context) error {
246246
return c.connectUsingTCP(ctx, c.config.Path)
247247
case RegistryLocal:
248248
return c.startLocal(ctx, c.config.Path)
249-
case RegistryGithub:
249+
case RegistryGithub, RegistryCloudQuery:
250250
return c.startLocal(ctx, c.LocalPath)
251251
case RegistryDocker:
252252
return c.startDockerPlugin(ctx, c.config.Path)
253-
case RegistryCloudQuery:
254-
return c.startLocal(ctx, c.LocalPath)
255253
default:
256254
return fmt.Errorf("unknown registry %s", c.config.Registry.String())
257255
}
@@ -260,7 +258,7 @@ func (c *Client) execPlugin(ctx context.Context) error {
260258
func (c *Client) ConnectionString() string {
261259
tgt := c.Conn.Target()
262260
switch c.registry {
263-
case RegistryGrpc:
261+
case RegistryGrpc, RegistryDocker:
264262
return tgt
265263
case RegistryLocal,
266264
RegistryGithub,
@@ -269,8 +267,6 @@ func (c *Client) ConnectionString() string {
269267
return tgt
270268
}
271269
return "unix://" + tgt
272-
case RegistryDocker:
273-
return tgt
274270
}
275271
return tgt
276272
}

tests/progressbar_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package test
1+
package tests
22

33
import (
44
"strings"

0 commit comments

Comments
 (0)