chore(deps): update dependency golangci/golangci-lint to v2 (#66)

This commit is contained in:
renovate[bot] 2025-05-04 00:40:35 +02:00 committed by GitHub
parent cef79b943c
commit 4829843c2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View file

@ -18,15 +18,15 @@ jobs:
go-version-file: go.mod go-version-file: go.mod
- name: Run golangci-lint (CLI) - name: Run golangci-lint (CLI)
uses: golangci/golangci-lint-action@v6 uses: golangci/golangci-lint-action@v7
with: with:
version: v1.64.8 # renovate: datasource=github-releases depName=golangci/golangci-lint version: v2.1.5 # renovate: datasource=github-releases depName=golangci/golangci-lint
args: --timeout 5m args: --timeout 5m
- name: Run golangci-lint (Lib) - name: Run golangci-lint (Lib)
uses: golangci/golangci-lint-action@v6 uses: golangci/golangci-lint-action@v7
with: with:
version: v1.64.8 # renovate: datasource=github-releases depName=golangci/golangci-lint version: v2.1.5 # renovate: datasource=github-releases depName=golangci/golangci-lint
args: --timeout 5m args: --timeout 5m
working-directory: hcloudimages working-directory: hcloudimages

View file

@ -327,7 +327,7 @@ func (s *Client) Upload(ctx context.Context, options UploadOptions) (*hcloud.Ima
if err != nil { if err != nil {
return nil, fmt.Errorf("failed to ssh into temporary server: %w", err) return nil, fmt.Errorf("failed to ssh into temporary server: %w", err)
} }
defer sshClient.Close() defer func() { _ = sshClient.Close() }()
// 6. SSH On Server: Download Image, Decompress, Write to Root Disk // 6. SSH On Server: Download Image, Decompress, Write to Root Disk
logger.InfoContext(ctx, "# Step 6: Downloading image and writing to disk") logger.InfoContext(ctx, "# Step 6: Downloading image and writing to disk")

View file

@ -12,7 +12,7 @@ func Run(client *ssh.Client, cmd string, stdin io.Reader) ([]byte, error) {
if err != nil { if err != nil {
return nil, err return nil, err
} }
defer sess.Close() defer func() { _ = sess.Close() }()
if stdin != nil { if stdin != nil {
sess.Stdin = stdin sess.Stdin = stdin