From 967821cb8ee7df675f9be516f7b086a5e08f40f2 Mon Sep 17 00:00:00 2001 From: Pete Cornish Date: Mon, 29 Apr 2024 10:29:48 +0100 Subject: [PATCH] fix: default plugin install tip should only display if flag is false. --- cmd/plugin_install.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/plugin_install.go b/cmd/plugin_install.go index 585f175..cd666bb 100644 --- a/cmd/plugin_install.go +++ b/cmd/plugin_install.go @@ -63,9 +63,12 @@ func installPlugins(plugins []string, version string, saveDefault bool) { ensured, err = plugin.EnsureConfiguredPlugins(version) } else { ensured, err = plugin.EnsurePlugins(plugins, version, saveDefault) - println(fmt.Sprintf(`ℹ️ Note that these plugins have not been saved as default plugins. + + if !saveDefault { + println(fmt.Sprintf(`ℹ️ Note that these plugins have not been saved as default plugins. This means they are installed only for engine version %s and not any future engine versions. To change this behaviour, pass the --save-default (-d) flag.`, version)) + } } if err != nil { logger.Fatal(err)