fix staticcheck warnings #292
Annotations
7 errors and 2 warnings
build:
pkg/apis/infrastructure/infra.go#L217
[golangci] reported by reviewdog 🐶
undefined: ioutil (typecheck)
Raw Output:
pkg/apis/infrastructure/infra.go:217:20: undefined: ioutil (typecheck)
/*
|
build:
pkg/cmd/config/setAccount.go#L25
[golangci] reported by reviewdog 🐶
could not import github.com/litmuschaos/litmusctl/pkg/apis/infrastructure (-: # github.com/litmuschaos/litmusctl/pkg/apis/infrastructure
Raw Output:
pkg/cmd/config/setAccount.go:25:8: could not import github.com/litmuschaos/litmusctl/pkg/apis/infrastructure (-: # github.com/litmuschaos/litmusctl/pkg/apis/infrastructure
|
build:
pkg/apis/infrastructure/infra.go#L217
[golangci] reported by reviewdog 🐶
undefined: ioutil) (typecheck)
Raw Output:
pkg/apis/infrastructure/infra.go:217:20: undefined: ioutil) (typecheck)
infra "github.com/litmuschaos/litmusctl/pkg/apis/infrastructure"
^
|
build:
pkg/infra_ops/ops.go#L26
[golangci] reported by reviewdog 🐶
could not import github.com/litmuschaos/litmusctl/pkg/apis/infrastructure (-: # github.com/litmuschaos/litmusctl/pkg/apis/infrastructure
Raw Output:
pkg/infra_ops/ops.go:26:2: could not import github.com/litmuschaos/litmusctl/pkg/apis/infrastructure (-: # github.com/litmuschaos/litmusctl/pkg/apis/infrastructure
|
build:
pkg/apis/infrastructure/infra.go#L217
[golangci] reported by reviewdog 🐶
undefined: ioutil) (typecheck)
Raw Output:
pkg/apis/infrastructure/infra.go:217:20: undefined: ioutil) (typecheck)
"github.com/litmuschaos/litmusctl/pkg/apis/infrastructure"
^
|
build:
pkg/apis/infrastructure/infra.go#L217
[golangci] reported by reviewdog 🐶
undefined: ioutil) (typecheck)
Raw Output:
pkg/apis/infrastructure/infra.go:217:20: undefined: ioutil) (typecheck)
"github.com/litmuschaos/litmusctl/pkg/apis/infrastructure"
^
|
build
Process completed with exit code 1.
|
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v2, actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-go@v2, actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|