plugins: add a release only flag to Discover

Since we now support loading pre-releases, we also want Packer to be
able to ignore them by user demand, so we put in place the
infrastructure to modulate this.
This commit is contained in:
Lucas Bajolet
2024-02-02 10:41:22 -05:00
parent 14a2608aed
commit a08bb230d4
10 changed files with 29 additions and 18 deletions
+1 -1
View File
@@ -263,7 +263,7 @@ func TestInitCommand_Run(t *testing.T) {
Meta: tt.Meta,
}
if err := c.CoreConfig.Components.PluginConfig.Discover(); err != nil {
if err := c.CoreConfig.Components.PluginConfig.Discover(false); err != nil {
t.Fatalf("Failed to discover plugins: %s", err)
}