Skip to content

Commit

Permalink
vendor: Fix SQL-regression caused by go 1.12.7 (ory#1534)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr authored Aug 19, 2019
1 parent 3eaa6c3 commit 9243dc2
Show file tree
Hide file tree
Showing 30 changed files with 959 additions and 740 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ test:
TEST_DATABASE_MYSQL='mysql://root:secret@(127.0.0.1:3444)/mysql?parseTime=true' \
TEST_DATABASE_POSTGRESQL='postgres://postgres:[email protected]:3445/hydra?sslmode=disable' \
TEST_DATABASE_COCKROACHDB='cockroach://[email protected]:3446/defaultdb?sslmode=disable' \
go-acc ./... -- -failfast -timeout=20m
$$(go env GOPATH)/bin/go-acc ./... -- -failfast -timeout=20m
docker rm -f hydra_test_database_mysql
docker rm -f hydra_test_database_postgres
docker rm -f hydra_test_database_cockroach
Expand Down
2 changes: 1 addition & 1 deletion client/sdk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
"github.com/ory/x/pointerx"
"github.com/ory/x/urlx"

"github.com/spf13/viper"
"github.com/ory/viper"

"github.com/ory/hydra/driver/configuration"

Expand Down
409 changes: 235 additions & 174 deletions client/sql_migration_files.go

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion client/validator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ import (
"net/http/httptest"
"testing"

"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
jose "gopkg.in/square/go-jose.v2"

"github.com/ory/viper"

. "github.com/ory/hydra/client"
"github.com/ory/hydra/driver/configuration"
"github.com/ory/hydra/internal"
Expand Down
3 changes: 2 additions & 1 deletion cmd/cli/handler_migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ import (
"strings"

"github.com/spf13/cobra"
"github.com/spf13/viper"

"github.com/ory/viper"

"github.com/ory/hydra/driver"
"github.com/ory/hydra/driver/configuration"
Expand Down
3 changes: 2 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ import (
"strings"

"github.com/spf13/cobra"
"github.com/spf13/viper"

"github.com/ory/viper"

"github.com/ory/hydra/cmd/cli"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/server/helper_cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"crypto/x509"
"encoding/pem"

"github.com/spf13/viper"
"github.com/ory/viper"

"github.com/ory/hydra/driver"

Expand Down
3 changes: 2 additions & 1 deletion consent/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ import (
_ "github.com/go-sql-driver/mysql"
"github.com/jmoiron/sqlx"
_ "github.com/lib/pq"
"github.com/spf13/viper"
"github.com/stretchr/testify/require"

"github.com/ory/viper"

. "github.com/ory/hydra/consent"
"github.com/ory/hydra/driver"
"github.com/ory/hydra/driver/configuration"
Expand Down
2 changes: 1 addition & 1 deletion consent/sdk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (

"github.com/ory/hydra/x"

"github.com/spf13/viper"
"github.com/ory/viper"

"github.com/ory/hydra/driver/configuration"
"github.com/ory/hydra/internal"
Expand Down
Loading

0 comments on commit 9243dc2

Please sign in to comment.