Skip to content

Commit 9111603

Browse files
feat: remove legacy plugin resolver
1 parent b4a22a0 commit 9111603

File tree

5 files changed

+1
-140
lines changed

5 files changed

+1
-140
lines changed

β€Žpkg/config/config.goβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ func SetFlags(cmd *cobra.Command) {
197197
cmd.Flags().Bool("show-progress", false, "shows the plugin download progress")
198198
cmd.Flags().String("config", "", "config file (default is .semrelrc)")
199199
cmd.Flags().Bool("allow-maintained-version-on-default-branch", false, "allow configuring the maintained version on the default branch")
200-
cmd.Flags().String("plugin-resolver", "registry", "which resolver should be used to resolve plugins (registry-v1, registry[-v2] or github)")
200+
cmd.Flags().String("plugin-resolver", "registry", "which resolver should be used to resolve plugins (registry[-v2] or github)")
201201
cmd.Flags().Bool("plugin-resolver-disable-batch-prefetch", false, "plugins should not be batch prefetched using the registry")
202202
cmd.Flags().String("plugin-resolver-endpoint", "", "explicitly specify the resolver endpoint that should be used for resolving the plugin dependencies")
203203
cmd.Flags().SortFlags = true

β€Žpkg/plugin/discovery/discovery.goβ€Ž

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"github.com/go-semantic-release/semantic-release/v2/pkg/plugin/discovery/resolver"
1010
"github.com/go-semantic-release/semantic-release/v2/pkg/plugin/discovery/resolver/github"
1111
"github.com/go-semantic-release/semantic-release/v2/pkg/plugin/discovery/resolver/registry"
12-
"github.com/go-semantic-release/semantic-release/v2/pkg/plugin/discovery/resolver/registryV1"
1312
)
1413

1514
type Discovery struct {
@@ -36,7 +35,6 @@ func loadResolvers(resolvers ...resolver.Resolver) (map[string]resolver.Resolver
3635
func New(config *config.Config) (*Discovery, error) {
3736
resolvers, err := loadResolvers(
3837
registry.NewResolver(config.PluginResolverEndpoint),
39-
registryV1.NewResolver(config.PluginResolverEndpoint),
4038
github.NewResolver(),
4139
)
4240
if err != nil {
File renamed without changes.

β€Žpkg/plugin/discovery/resolver/registryV1/api.goβ€Ž

Lines changed: 0 additions & 56 deletions
This file was deleted.

β€Žpkg/plugin/discovery/resolver/registryV1/registry.goβ€Ž

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
Β (0)