Skip to content

Commit d38f5b1

Browse files
feaet(registry): update client library
1 parent 9746cf6 commit d38f5b1

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.19
55
require (
66
github.com/Masterminds/semver/v3 v3.2.0
77
github.com/cavaliergopher/grab/v3 v3.0.1
8-
github.com/go-semantic-release/plugin-registry v1.4.0
8+
github.com/go-semantic-release/plugin-registry v1.8.0
99
github.com/google/go-github/v49 v49.1.1-0.20230111123143-ced4abd274f3
1010
github.com/hashicorp/go-hclog v1.4.0
1111
github.com/hashicorp/go-plugin v1.4.8

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbS
6868
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
6969
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
7070
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
71-
github.com/go-semantic-release/plugin-registry v1.4.0 h1:hp/M6zjmv5fKIyTuqKgdvZi6WrHmXUIfswhgv4Q3xMg=
72-
github.com/go-semantic-release/plugin-registry v1.4.0/go.mod h1:UauFd53y1hbnb4VMCeJkMVa2j8YVNioSAnh4qByYapw=
71+
github.com/go-semantic-release/plugin-registry v1.8.0 h1:Q+klx/p+d59yf3vF5A+YI8CQM2ycPirYDvo73vzUBjU=
72+
github.com/go-semantic-release/plugin-registry v1.8.0/go.mod h1:cdjOLL5t7sa3TqcFegOY0GiqdPseXJnvWM8IwjRy/qU=
7373
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
7474
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
7575
github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=

pkg/plugin/discovery/resolver/registry/registry.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"fmt"
66
"runtime"
77
"sort"
8-
"strings"
98

109
"github.com/Masterminds/semver/v3"
1110
"github.com/go-semantic-release/plugin-registry/pkg/client"
@@ -14,19 +13,13 @@ import (
1413
"github.com/go-semantic-release/semantic-release/v2/pkg/plugin/discovery/resolver"
1514
)
1615

17-
const DefaultEndpoint = "https://registry.go-semantic-release.xyz/api/v2"
18-
1916
type Resolver struct {
2017
client *client.Client
2118
}
2219

2320
func NewResolver(endpoint string) *Resolver {
2421
if endpoint == "" {
25-
endpoint = DefaultEndpoint
26-
}
27-
endpoint = strings.TrimSuffix(endpoint, "/")
28-
if !strings.HasSuffix(endpoint, "/api/v2") {
29-
endpoint = fmt.Sprintf("%s/api/v2", endpoint)
22+
endpoint = client.DefaultProductionEndpoint
3023
}
3124
return &Resolver{
3225
client: client.New(endpoint),

0 commit comments

Comments
 (0)