Skip to content

Commit

Permalink
Bump github.com/CircleCI-Public/circleci-cli from 0.1.15108 to 0.1.16…
Browse files Browse the repository at this point in the history
…122 (#51)

* Bump github.com/CircleCI-Public/circleci-cli from 0.1.15108 to 0.1.16122

Bumps [github.com/CircleCI-Public/circleci-cli](https://github.com/CircleCI-Public/circleci-cli) from 0.1.15108 to 0.1.16122.
- [Release notes](https://github.com/CircleCI-Public/circleci-cli/releases)
- [Changelog](https://github.com/CircleCI-Public/circleci-cli/blob/master/.goreleaser.yml)
- [Commits](CircleCI-Public/circleci-cli@v0.1.15108...v0.1.16122)

---
updated-dependencies:
- dependency-name: github.com/CircleCI-Public/circleci-cli
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* handle new signature for `NewContextRestClient`

* pass in `RestEndpoint`, `HTTPClient`

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ben Drucker <[email protected]>
  • Loading branch information
dependabot[bot] and bendrucker authored Oct 22, 2021
1 parent fbde957 commit 9cb7191
Show file tree
Hide file tree
Showing 470 changed files with 76,049 additions and 56 deletions.
9 changes: 8 additions & 1 deletion circleci/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ package client
import (
"errors"
"fmt"
"net/http"
"net/url"

"github.com/CircleCI-Public/circleci-cli/api"
"github.com/CircleCI-Public/circleci-cli/settings"

"github.com/mrolla/terraform-provider-circleci/circleci/client/rest"
)
Expand Down Expand Up @@ -37,7 +39,12 @@ func New(config Config) (*Client, error) {

rootURL := fmt.Sprintf("%s://%s", u.Scheme, u.Host)

contexts, err := api.NewContextRestClient(rootURL, u.Path, config.Token)
contexts, err := api.NewContextRestClient(settings.Config{
Host: rootURL,
RestEndpoint: u.Path,
Token: config.Token,
HTTPClient: http.DefaultClient,
})
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/mrolla/terraform-provider-circleci
go 1.14

require (
github.com/CircleCI-Public/circleci-cli v0.1.15108
github.com/CircleCI-Public/circleci-cli v0.1.16122
github.com/google/uuid v1.3.0
github.com/hashicorp/terraform-plugin-sdk v1.7.0
github.com/stretchr/testify v1.7.0
Expand Down
34 changes: 32 additions & 2 deletions go.sum

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions vendor/github.com/BurntSushi/toml/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions vendor/github.com/BurntSushi/toml/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions vendor/github.com/BurntSushi/toml/COMPATIBLE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions vendor/github.com/BurntSushi/toml/COPYING

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions vendor/github.com/BurntSushi/toml/Makefile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

218 changes: 218 additions & 0 deletions vendor/github.com/BurntSushi/toml/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9cb7191

Please sign in to comment.