-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix repo/chart path bug causing unexpected diff #449
Conversation
@@ -890,6 +887,7 @@ func resourceHelmReleaseImportState(d *schema.ResourceData, meta interface{}) ([ | |||
|
|||
d.Set("name", r.Name) | |||
d.Set("description", r.Info.Description) | |||
d.Set("chart", r.Chart.Metadata.Name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran a lint tool on this and it mentioned the error return value isn't being checked for this one. It could be fine. But I'll post the output here just in case:
[dakini@dax terraform-provider-helm ((cbb5efb...))]$ golangci-lint run
helm/resource_release.go:888:7: Error return value of `d.Set` is not checked (errcheck)
d.Set("name", r.Name)
^
helm/resource_release.go:889:7: Error return value of `d.Set` is not checked (errcheck)
d.Set("description", r.Info.Description)
^
helm/resource_release.go:890:7: Error return value of `d.Set` is not checked (errcheck)
d.Set("chart", r.Chart.Metadata.Name)
^
helm/resource_release.go:831:5: S1003: should use !strings.Contains(name, "/") instead (gosimple)
if strings.Index(name, "/") == -1 && repository != "" {
^
helm/provider.go:462:27: S1019: should use make([]string, len(s)) instead (gosimple)
result := make([]string, len(s), len(s))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah - there is a bunch of linter problems with this repo but it shouldn't be a problem for this particular bug. We should totally clean these up though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Resolves #448