Skip to content

Refactor cmd/rigtest into a real test suite in test/rig_test.go and fix found bugs #252

Refactor cmd/rigtest into a real test suite in test/rig_test.go and fix found bugs

Refactor cmd/rigtest into a real test suite in test/rig_test.go and fix found bugs #252

Triggered via pull request December 21, 2023 08:32
@kkekke
synchronize #145
rigtest-to-test
Status Failure
Total duration 46s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

golangci-lint.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

9 errors
Lint: pkg/rigfs/direntrybuffer.go#L1
: # github.com/k0sproject/rig/pkg/rigfs
Lint: pkg/rigfs/winfile.go#L6
"encoding/hex" imported and not used (typecheck)
Lint: connection.go#L19
could not import github.com/k0sproject/rig/pkg/rigfs (-: # github.com/k0sproject/rig/pkg/rigfs
Lint: pkg/rigfs/winfile.go#L6
"encoding/hex" imported and not used) (typecheck)
Lint: exec/exec.go#L100
`if o.LogCommand` has complex nested blocks (complexity: 7) (nestif)
Lint: os/windows.go#L106
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"empty content for writing to %s\", path)" (goerr113)
Lint: os/windows.go#L110
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"empty path for file writing %s\", path)" (goerr113)
Lint: os/windows.go#L210
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"service scripts not supported on windows\")" (goerr113)
Lint
issues found