mirror of
https://github.com/helmfile/helmfile.git
synced 2026-09-30 07:42:04 +02:00
feat: update go version and adjust dependencies in Dockerfile and go.mod (#1722)
* feat: update go version and adjust dependencies in Dockerfile and go.mod Signed-off-by: yxxhero <aiopsclub@163.com> * fix lint Signed-off-by: yxxhero <aiopsclub@163.com> * fix lint Signed-off-by: yxxhero <aiopsclub@163.com> --------- Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
@@ -461,7 +461,7 @@ func (helm *execer) TemplateRelease(name string, chart string, flags ...string)
|
||||
func (helm *execer) DiffRelease(context HelmContext, name, chart, namespace string, suppressDiff bool, flags ...string) error {
|
||||
diffMsg := fmt.Sprintf("Comparing release=%v, chart=%v, namespace=%v\n", name, redactedURL(chart), namespace)
|
||||
if context.Writer != nil && !suppressDiff {
|
||||
fmt.Fprint(context.Writer, diffMsg)
|
||||
_, _ = fmt.Fprint(context.Writer, diffMsg)
|
||||
} else {
|
||||
helm.logger.Info(diffMsg)
|
||||
}
|
||||
@@ -637,7 +637,7 @@ func (helm *execer) write(w io.Writer, out []byte) {
|
||||
if w == nil {
|
||||
w = os.Stdout
|
||||
}
|
||||
fmt.Fprintf(w, "%s\n", out)
|
||||
_, _ = fmt.Fprintf(w, "%s\n", out)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -997,7 +997,7 @@ func Test_GetPluginVersion(t *testing.T) {
|
||||
|
||||
v3SecretPluginVersion, err := GetPluginVersion("secrets", v3PluginDirPath)
|
||||
if err != nil {
|
||||
t.Errorf(err.Error())
|
||||
t.Error(err.Error())
|
||||
}
|
||||
if v3SecretPluginVersion.String() != v3ExpectedVersion {
|
||||
t.Errorf("secrets v3 plugin version is %v, expected %v", v3SecretPluginVersion.String(), v3ExpectedVersion)
|
||||
@@ -1005,7 +1005,7 @@ func Test_GetPluginVersion(t *testing.T) {
|
||||
|
||||
v4SecretPluginVersion, err := GetPluginVersion("secrets", v4PluginDirPath)
|
||||
if err != nil {
|
||||
t.Errorf(err.Error())
|
||||
t.Error(err.Error())
|
||||
}
|
||||
if v4SecretPluginVersion.String() != v4ExpectedVersion {
|
||||
t.Errorf("secrets v4 plugin version is %v, expected %v", v4SecretPluginVersion.String(), v4ExpectedVersion)
|
||||
|
||||
@@ -146,7 +146,7 @@ func LiveOutput(ctx context.Context, c *exec.Cmd, stripArgsValuesOnExitError boo
|
||||
}
|
||||
|
||||
line = strings.TrimSuffix(line, "\n")
|
||||
fmt.Fprintln(stdout, line)
|
||||
_, _ = fmt.Fprintln(stdout, line)
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user