mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-16 03:52:12 +02:00
chore(deps): bump github.com/xanzy/go-gitlab from 0.29.0 to 0.31.0 (#1459)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
parent
fc1ef8a2a2
commit
a39329f1b3
2
go.mod
2
go.mod
@ -20,7 +20,7 @@ require (
|
||||
github.com/pkg/errors v0.9.1
|
||||
github.com/stretchr/testify v1.5.1
|
||||
github.com/ulikunitz/xz v0.5.7
|
||||
github.com/xanzy/go-gitlab v0.29.0
|
||||
github.com/xanzy/go-gitlab v0.31.0
|
||||
gocloud.dev v0.19.0
|
||||
golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa // indirect
|
||||
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
|
||||
|
4
go.sum
4
go.sum
@ -218,8 +218,8 @@ github.com/ulikunitz/xz v0.5.6 h1:jGHAfXawEGZQ3blwU5wnWKQJvAraT7Ftq9EXjnXYgt8=
|
||||
github.com/ulikunitz/xz v0.5.6/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8=
|
||||
github.com/ulikunitz/xz v0.5.7 h1:YvTNdFzX6+W5m9msiYg/zpkSURPPtOlzbqYjrFn7Yt4=
|
||||
github.com/ulikunitz/xz v0.5.7/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14=
|
||||
github.com/xanzy/go-gitlab v0.29.0 h1:9tMvAkG746eIlzcdpnRgpcKPA1woUDmldMIjR/E5OWM=
|
||||
github.com/xanzy/go-gitlab v0.29.0/go.mod h1:sPLojNBn68fMUWSxIJtdVVIP8uSBYqesTfDUseX11Ug=
|
||||
github.com/xanzy/go-gitlab v0.31.0 h1:+nHztQuCXGSMluKe5Q9IRaPdz6tO8O0gMkQ0vqGpiBk=
|
||||
github.com/xanzy/go-gitlab v0.31.0/go.mod h1:sPLojNBn68fMUWSxIJtdVVIP8uSBYqesTfDUseX11Ug=
|
||||
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 h1:nIPpBwaJSVYIxUFsDv3M8ofmx9yWTog9BfvIu0q41lo=
|
||||
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8/go.mod h1:HUYIGzjTL3rfEspMxjDjgmT5uz5wzYJKVo23qUhYTos=
|
||||
go.opencensus.io v0.15.0/go.mod h1:UffZAU+4sDEINUGP/B7UfBBkq4fqLu9zXAX7ke6CHW0=
|
||||
|
@ -31,13 +31,17 @@ func NewGitLab(ctx *context.Context) (Client, error) {
|
||||
InsecureSkipVerify: ctx.Config.GitLabURLs.SkipTLSVerify,
|
||||
},
|
||||
}
|
||||
httpClient := &http.Client{Transport: transport}
|
||||
client := gitlab.NewClient(httpClient, token)
|
||||
var options = []gitlab.ClientOptionFunc{
|
||||
gitlab.WithHTTPClient(&http.Client{
|
||||
Transport: transport,
|
||||
}),
|
||||
}
|
||||
if ctx.Config.GitLabURLs.API != "" {
|
||||
err := client.SetBaseURL(ctx.Config.GitLabURLs.API)
|
||||
if err != nil {
|
||||
return &gitlabClient{}, err
|
||||
}
|
||||
options = append(options, gitlab.WithBaseURL(ctx.Config.GitLabURLs.API))
|
||||
}
|
||||
client, err := gitlab.NewClient(token, options...)
|
||||
if err != nil {
|
||||
return &gitlabClient{}, err
|
||||
}
|
||||
return &gitlabClient{client: client}, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user