Skip to content

Commit

Permalink
feat: remove legacy plugin resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
christophwitzko committed Feb 10, 2023
1 parent b4a22a0 commit 9111603
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 140 deletions.
2 changes: 1 addition & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func SetFlags(cmd *cobra.Command) {
cmd.Flags().Bool("show-progress", false, "shows the plugin download progress")
cmd.Flags().String("config", "", "config file (default is .semrelrc)")
cmd.Flags().Bool("allow-maintained-version-on-default-branch", false, "allow configuring the maintained version on the default branch")
cmd.Flags().String("plugin-resolver", "registry", "which resolver should be used to resolve plugins (registry-v1, registry[-v2] or github)")
cmd.Flags().String("plugin-resolver", "registry", "which resolver should be used to resolve plugins (registry[-v2] or github)")
cmd.Flags().Bool("plugin-resolver-disable-batch-prefetch", false, "plugins should not be batch prefetched using the registry")
cmd.Flags().String("plugin-resolver-endpoint", "", "explicitly specify the resolver endpoint that should be used for resolving the plugin dependencies")
cmd.Flags().SortFlags = true
Expand Down
2 changes: 0 additions & 2 deletions pkg/plugin/discovery/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"github.com/go-semantic-release/semantic-release/v2/pkg/plugin/discovery/resolver"
"github.com/go-semantic-release/semantic-release/v2/pkg/plugin/discovery/resolver/github"
"github.com/go-semantic-release/semantic-release/v2/pkg/plugin/discovery/resolver/registry"
"github.com/go-semantic-release/semantic-release/v2/pkg/plugin/discovery/resolver/registryV1"
)

type Discovery struct {
Expand All @@ -36,7 +35,6 @@ func loadResolvers(resolvers ...resolver.Resolver) (map[string]resolver.Resolver
func New(config *config.Config) (*Discovery, error) {
resolvers, err := loadResolvers(
registry.NewResolver(config.PluginResolverEndpoint),
registryV1.NewResolver(config.PluginResolverEndpoint),
github.NewResolver(),
)
if err != nil {
Expand Down
56 changes: 0 additions & 56 deletions pkg/plugin/discovery/resolver/registryV1/api.go

This file was deleted.

81 changes: 0 additions & 81 deletions pkg/plugin/discovery/resolver/registryV1/registry.go

This file was deleted.

0 comments on commit 9111603

Please sign in to comment.