Skip to content

Lint Go code step failed (#12523) #12522

@juunini

Description

@juunini

Checklist:

Describe the bug

see: https://github.com/argoproj/argo-cd/actions/runs/4209820392/jobs/7307058706

golang lint failed by io/ioutil

To Reproduce

just do pull request without change golang code

Expected behavior

pass github actions

Screenshots

image

Version

Logs

Running [/home/runner/golangci-lint-1.51.0-linux-amd64/golangci-lint run --out-format=github-actions --timeout 10m --exclude SA5011 --verbose] in [] ...
  Error: SA1019: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.  (staticcheck)
  
  level=info msg="[config_reader] Config search paths: [./ /home/runner/work/argo-cd/argo-cd /home/runner/work/argo-cd /home/runner/work /home/runner /home /]"
  level=info msg="[lintersdb] Active 7 linters: [errcheck gosimple govet ineffassign staticcheck typecheck unused]"
  level=info msg="[loader] Go packages loading at mode 575 (compiled_files|deps|exports_file|imports|name|files|types_sizes) took 3.85749944s"
  level=info msg="[runner/filename_unadjuster] Pre-built 0 adjustments in [35](https://github.com/argoproj/argo-cd/actions/runs/4209820392/jobs/7307058706#step:4:37)0.502939ms"
  level=info msg="[linters_context/goanalysis] analyzers took 0s with no stages"
  level=info msg="[runner] Issues before processing: 214, after processing: 1"
  level=info msg="[runner] Processors filtering stat (out/in): identifier_marker: 175/175, uniq_by_line: 1/1, max_same_issues: 1/1, path_shortener: 1/1, skip_dirs: 214/214, max_from_linter: 1/1, path_prefixer: 1/1, cgo: 214/214, skip_files: 214/214, autogenerated_exclude: 175/214, exclude: 175/175, nolint: 1/[36](https://github.com/argoproj/argo-cd/actions/runs/4209820392/jobs/7307058706#step:4:38), severity-rules: 1/1, filename_unadjuster: 214/214, exclude-rules: 36/175, diff: 1/1, max_per_file_from_linter: 1/1, source_code: 1/1, sort_results: 1/1, path_prettifier: 214/214"
  level=info msg="[runner] processing took 41.27514ms with stages: nolint: 30.294176ms, identifier_marker: 3.39432ms, exclude-rules: 3.027418ms, autogenerated_exclude: 1.68291ms, path_prettifier: 1.[37](https://github.com/argoproj/argo-cd/actions/runs/4209820392/jobs/7307058706#step:4:39)2008ms, exclude: 771.304µs, skip_dirs: 462.303µs, cgo: 197.501µs, source_code: 37.6µs, filename_unadjuster: 24.5µs, max_same_issues: 3.4µs, uniq_by_line: 2.7µs, path_shortener: 1.4µs, max_from_linter: 1.2µs, max_per_file_from_linter: 700ns, skip_files: 500ns, diff: [40](https://github.com/argoproj/argo-cd/actions/runs/4209820392/jobs/7307058706#step:4:42)0ns, sort_results: 300ns, severity-rules: 300ns, path_prefixer: 200ns"
  level=info msg="[runner] linters took 798.2748[44](https://github.com/argoproj/argo-cd/actions/runs/4209820392/jobs/7307058706#step:4:46)ms with stages: goanalysis_metalinter: 756.825003ms"
  level=info msg="File cache stats: 1 entries of total size 5.4KiB"
  level=info msg="Memory: 52 samples, avg is 40.0MB, max is 85.3MB"
  level=info msg="Execution took 5.014935174s"
  
  Error: issues found
  Ran golangci-lint in 5165ms

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions