Skip to content

Commit 3ef403b

Browse files
authored
chore: upgrade and prune dependencies (#439)
1 parent 1e51407 commit 3ef403b

5 files changed

Lines changed: 421 additions & 371 deletions

File tree

‎Makefile‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ docs/cli: .bin/clidoc
1313
clidoc .
1414

1515
.bin/cli: go.mod Makefile
16-
go build -o .bin/cli -tags sqlite github.com/ory/cli
16+
go build -o .bin/cli github.com/ory/cli
1717

1818
.bin/golangci-lint-$(GOLANGCI_LINT_VERSION):
1919
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b .bin v$(GOLANGCI_LINT_VERSION)
@@ -28,11 +28,11 @@ lint: .bin/golangci-lint-$(GOLANGCI_LINT_VERSION)
2828

2929
.PHONY: install
3030
install:
31-
go install -tags sqlite .
31+
go install .
3232

3333
.PHONY: refresh
3434
refresh:
35-
UPDATE_SNAPSHOTS=true go test -tags sqlite,json1,refresh ./...
35+
UPDATE_SNAPSHOTS=true go test -tags=refresh ./...
3636

3737
# Formats the code
3838
.PHONY: format

‎cmd/cloudx/oauth2/client_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"fmt"
99
"testing"
1010

11-
"github.com/gofrs/uuid/v3"
11+
"github.com/gofrs/uuid"
1212
"github.com/stretchr/testify/assert"
1313
"github.com/stretchr/testify/require"
1414
"github.com/tidwall/gjson"

‎cmd/cloudx/proxy/helpers.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626

2727
"github.com/go-jose/go-jose/v3"
2828
"github.com/go-jose/go-jose/v3/jwt"
29-
"github.com/gofrs/uuid/v3"
29+
"github.com/gofrs/uuid"
3030
"github.com/hashicorp/go-retryablehttp"
3131
"github.com/pkg/errors"
3232
"github.com/rs/cors"
@@ -376,7 +376,7 @@ func checkSession(c *retryablehttp.Client, r *http.Request, target *url.URL) (js
376376
target.Path = path.Join(target.Path, "sessions", "whoami")
377377
req, err := retryablehttp.NewRequest("GET", target.String(), nil)
378378
if err != nil {
379-
return nil, errors.WithStack(herodot.ErrInternalServerError)
379+
return nil, errors.WithStack(herodot.ErrInternalServerError())
380380
}
381381

382382
req.Header.Set("Cookie", r.Header.Get("Cookie"))
@@ -387,13 +387,13 @@ func checkSession(c *retryablehttp.Client, r *http.Request, target *url.URL) (js
387387

388388
res, err := c.Do(req)
389389
if err != nil {
390-
return nil, errors.WithStack(herodot.ErrInternalServerError.WithReasonf("Unable to call session checker: %s", err).WithWrap(err))
390+
return nil, errors.WithStack(herodot.ErrInternalServerError().WithReasonf("Unable to call session checker: %s", err).WithWrap(err))
391391
}
392392
defer res.Body.Close()
393393

394394
var body json.RawMessage
395395
if err := json.NewDecoder(res.Body).Decode(&body); err != nil {
396-
return nil, errors.WithStack(herodot.ErrInternalServerError.WithReasonf("Unable to decode session to JSON: %s", err).WithWrap(err))
396+
return nil, errors.WithStack(herodot.ErrInternalServerError().WithReasonf("Unable to decode session to JSON: %s", err).WithWrap(err))
397397
}
398398

399399
return body, nil

0 commit comments

Comments
 (0)