Skip to content

Commit 424fbb8

Browse files
committed
Use golangci-lint v1.61.0
1 parent 83f02ab commit 424fbb8

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@ jobs:
4747
- name: Set up golangci-lint
4848
uses: golangci/golangci-lint-action@v3
4949
with:
50-
version: v1.52.2
50+
version: v1.61.0
5151
args: --timeout=3m

.golangci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
run:
2-
skip-dirs:
1+
issues:
2+
exclude-dirs:
33
- pkg/configs

pkg/tfvar/collect.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package tfvar
22

33
import (
4-
"io/ioutil"
54
"os"
65
"path/filepath"
76
"strings"
@@ -33,7 +32,7 @@ func LookupTFVarsFiles(dir string) []string {
3332
files = append(files, dj)
3433
}
3534

36-
if infos, err := ioutil.ReadDir(dir); err == nil {
35+
if infos, err := os.ReadDir(dir); err == nil {
3736
// "infos" is already sorted by name, so we just need to filter it here.
3837
for _, info := range infos {
3938
name := info.Name()
@@ -104,7 +103,7 @@ func CollectFromString(raw string, to map[string]UnparsedVariableValue) error {
104103

105104
// CollectFromFile extracts the variable definitions from the given file.
106105
func CollectFromFile(filename string, to map[string]UnparsedVariableValue) error {
107-
src, err := ioutil.ReadFile(filename)
106+
src, err := os.ReadFile(filename)
108107
if err != nil {
109108
return errors.Errorf("tfvar: reading file '%s'", filename)
110109
}

0 commit comments

Comments
 (0)