Skip to content

Commit ded2e67

Browse files
committed
fix: updating to unreleased plugins
1 parent 68be37c commit ded2e67

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/actions/plugin_update.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"context"
55
"fmt"
66

7+
"github.com/Masterminds/semver"
78
"github.com/outblocks/outblocks-cli/pkg/config"
89
"github.com/outblocks/outblocks-cli/pkg/logger"
910
"github.com/outblocks/outblocks-cli/pkg/plugins"
@@ -48,8 +49,10 @@ func (d *PluginUpdate) Run(ctx context.Context) error {
4849
continue
4950
}
5051

52+
matchingConstr, _ := semver.NewConstraint(matching.String())
53+
5154
// Download new plugin version.
52-
plug, err := d.loader.DownloadPlugin(ctx, p.Name, p.VerConstr(), p.Source, nil)
55+
plug, err := d.loader.DownloadPlugin(ctx, p.Name, matchingConstr, p.Source, nil)
5356
if err != nil {
5457
return err
5558
}

0 commit comments

Comments
 (0)