diff --git a/.github/workflows/go-cross.yml b/.github/workflows/go-cross.yml index a0f4a76..8e53072 100644 --- a/.github/workflows/go-cross.yml +++ b/.github/workflows/go-cross.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: - go-version: [ 1.16, 1.x ] + go-version: [ 1.17, 1.x ] os: [ubuntu-latest, macos-latest, windows-latest] steps: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4d613ad..994c398 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,8 +14,8 @@ jobs: name: Main Process runs-on: ubuntu-latest env: - GO_VERSION: 1.16 - GOLANGCI_LINT_VERSION: v1.40.1 + GO_VERSION: 1.17 + GOLANGCI_LINT_VERSION: v1.45.2 CGO_ENABLED: 0 steps: diff --git a/.golangci.yml b/.golangci.yml index cc0a1fc..a2483e9 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -72,6 +72,7 @@ linters: - wrapcheck - exhaustive - exhaustivestruct + - varnamelen issues: exclude-use-default: false diff --git a/module.go b/module.go index c164835..907be24 100644 --- a/module.go +++ b/module.go @@ -5,7 +5,7 @@ import ( "encoding/json" "errors" "fmt" - "io/ioutil" + "os" "os/exec" "golang.org/x/mod/modfile" @@ -39,7 +39,7 @@ func GetModuleFile() (*modfile.File, error) { return nil, errors.New("working directory is not part of a module") } - raw, err = ioutil.ReadFile(v.GoMod) + raw, err = os.ReadFile(v.GoMod) if err != nil { return nil, fmt.Errorf("reading go.mod file: %w", err) }