Skip to content

Show errors when linting for Chart.yaml version and appVersion fields of type non-string - #7235

Merged
bacongobbler merged 1 commit into
helm:masterfrom
karuppiah7890:fix-lint
Jul 7, 2020
Merged

bacongobbler merged 1 commit into
helm:masterfrom
karuppiah7890:fix-lint

Conversation

@karuppiah7890

@karuppiah7890 karuppiah7890 commented Dec 15, 2019 •

Copy link
Copy Markdown
Contributor

Fixes #6921 . Fixes linting. Package fix - have to discuss

@helm-bot helm-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Dec 15, 2019
@bacongobbler bacongobbler added the v3.x Issues and Pull Requests related to the major version v3 label Jan 8, 2020
Comment thread pkg/chartutil/chartfile.go Resolved
@karuppiah7890

Copy link
Copy Markdown
Contributor Author

I've pushed the changes @mattfarina ! Added a small comment too for the private function, for clarity

… of type non-string

Signed-off-by: Karuppiah Natarajan <[email protected]>

@bacongobbler bacongobbler left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as intended. LGTM.

~/code/go/src/helm.sh/helm ><> ./bin/helm create test-7235
Creating test-7235
~/code/go/src/helm.sh/helm ><> ./bin/helm lint ./test-7235/
==> Linting ./test-7235/
[INFO] Chart.yaml: icon is recommended

1 chart(s) linted, 0 chart(s) failed
~/code/go/src/helm.sh/helm ><> vim ./test-7235/Chart.yaml 
~/code/go/src/helm.sh/helm ><> ./bin/helm lint ./test-7235/
==> Linting ./test-7235/
[ERROR] Chart.yaml: version should be of type string but it's of type float64
[INFO] Chart.yaml: icon is recommended

Error: 1 chart(s) linted, 1 chart(s) failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L Denotes a PR that changes 100-499 lines, ignoring generated files. v3.x Issues and Pull Requests related to the major version v3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Helm3: when App Version is a commit sha, it's getting converted to scientific notation

4 participants