mirror of
https://github.com/apricote/hcloud-upload-image.git
synced 2026-01-13 13:21:01 +00:00
chore(deps): update dependency golangci/golangci-lint to v2 (#66)
This commit is contained in:
parent
cef79b943c
commit
4829843c2e
3 changed files with 6 additions and 6 deletions
8
.github/workflows/ci.yaml
vendored
8
.github/workflows/ci.yaml
vendored
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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")
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue