norwoodj/helm-docs

[Bug]: Error with my go1.20 cannot compile Go 1.22 code

denist-huma opened this issue · 1 comments

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I have a problem with the helm-docs v1.13.0.
I run helm-docs in the Github CI, but run the CLI.
I expect helm-docs to be backward compatible with Go versions.

Run make charts-docs
  make charts-docs
  shell: /usr/bin/bash -e {0}
go: downloading github.com/norwoodj/helm-docs v1.13.0
go: downloading github.com/sirupsen/logrus v1.6.0
go: downloading github.com/spf13/cobra v1.7.0
go: downloading github.com/spf13/viper v1.16.0
go: downloading github.com/Masterminds/sprig/v3 v3.[2](https://github.com/huma-engineering/huma-control-plane-plugins/actions/runs/8052153498/job/21991663599#step:4:2).2
go: downloading github.com/gobwas/glob v0.2.[3](https://github.com/huma-engineering/huma-control-plane-plugins/actions/runs/8052153498/job/21991663599#step:4:3)
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading golang.org/x/sys v0.8.0
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/fsnotify/fsnotify v1.6.0
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading github.com/spf13/afero v1.9.5
go: downloading github.com/spf13/cast v1.5.1
go: downloading github.com/spf13/jwalterweatherman v1.1.0
go: downloading github.com/Masterminds/goutils v1.1.1
go: downloading github.com/Masterminds/semver/v3 v3.1.1
go: downloading github.com/google/uuid v1.1.2
go: downloading github.com/huandu/xstrings v1.3.1
go: downloading github.com/imdario/mergo v0.3.11
go: downloading github.com/mitchellh/copystructure v1.0.0
go: downloading github.com/shopspring/decimal v1.2.0
go: downloading golang.org/x/crypto v0.9.0
go: downloading k8s.io/helm v2.1[4](https://github.com/huma-engineering/huma-control-plane-plugins/actions/runs/8052153498/job/21991663599#step:4:5).3+incompatible
go: downloading golang.org/x/text v0.9.0
go: downloading github.com/subosito/gotenv v1.4.2
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading gopkg.in/ini.v1 v1.[6](https://github.com/huma-engineering/huma-control-plane-plugins/actions/runs/8052153498/job/21991663599#step:4:7)[7](https://github.com/huma-engineering/huma-control-plane-plugins/actions/runs/8052153498/job/21991663599#step:4:8).0
go: downloading github.com/magiconair/properties v1.[8](https://github.com/huma-engineering/huma-control-plane-plugins/actions/runs/8052153498/job/21991663599#step:4:9).7
go: downloading github.com/pelletier/go-toml/v2 v2.0.8
go: downloading github.com/mitchellh/reflectwalk v1.0.0
github.com/norwoodj/helm-docs/pkg/util: cannot compile Go 1.22 code

Expected Behavior

My make script works locally with go1.20.8 github.com/norwoodj/helm-docs/@v/v1.11.0

Reference Chart

no chart is needed

Reference Template

No response

Environment

  • Operating system: ubuntu
  • Helm version (output of helm version):
  • GO version (output of go version): go 1.20.14
  • Method of calling helm-docs (manual, jenkins, github action ...): manual

Link to helm-docs Logs

No response

Further Information

No response

The project has been updated to go 1.22. You need to update go to this version in your CI for the build to succeed.