Skip to content

Commit

Permalink
🐛 regression - extracommands require a valid PROJECT file again
Browse files Browse the repository at this point in the history
Handle 3-alpha based on review comments

Signed-off-by: jesus m. rodriguez <jesusr@redhat.com>
  • Loading branch information
jmrodri committed Apr 8, 2021
1 parent 84f357b commit d2a5b6d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,14 @@ func newCLI(options ...Option) (*CLI, error) {
func (c *CLI) buildCmd() error {
c.cmd = c.newRootCmd()

var uve config.UnsupportedVersionError

// Get project version and plugin keys.
if err := c.getInfo(); err != nil {
switch err := c.getInfo(); {
case err == nil:
// do nothing if it's nil
case !errors.As(err, &uve):
// Ignore 3-alpha error
return err
}

Expand Down

0 comments on commit d2a5b6d

Please sign in to comment.