chore: updgrade pgx direct deps to v5 (#3258)

This commit is contained in:
Jim authored and GitHub committed 2023-06-01 08:59:38 -04:00
1 parent c765db2bb8
commit d4e537c88d
8 files changed
+7 -8

No files matched your search

+1 -1
View File
@@ -50,7 +50,7 @@ require (
github.com/hashicorp/vault/api v1.9.1
github.com/iancoleman/strcase v0.2.0
github.com/jackc/pgconn v1.14.0
github.com/jackc/pgx/v4 v4.18.1
github.com/jackc/pgx/v4 v4.18.1 // indirect
github.com/jefferai/keyring v1.1.7-0.20220316160357-58a74bb55891
github.com/kr/pretty v0.3.1
github.com/kr/text v0.2.0
@@ -12,7 +12,7 @@ import (
"strings"
"github.com/hashicorp/boundary/internal/db/common"
_ "github.com/jackc/pgx/v4/stdlib"
_ "github.com/jackc/pgx/v5/stdlib"
"github.com/ory/dockertest/v3"
)
+1 -1
View File
@@ -21,7 +21,7 @@ import (
"github.com/hashicorp/boundary/internal/db/common"
"github.com/hashicorp/go-rootcerts"
vault "github.com/hashicorp/vault/api"
_ "github.com/jackc/pgx/v4/stdlib"
_ "github.com/jackc/pgx/v5/stdlib"
"github.com/ory/dockertest/v3"
"github.com/stretchr/testify/require"
)
@@ -1351,7 +1351,6 @@ func TestCreate(t *testing.T) {
s, err := authmethods.NewService(testKms, pwRepoFn, oidcRepoFn, iamRepoFn, atRepoFn, ldapRepoFn)
require.NoError(err, "Error when getting new auth_method service.")
conn.Debug(true)
got, gErr := s.CreateAuthMethod(requestauth.DisabledAuthTestContext(iamRepoFn, tc.req.GetItem().GetScopeId()), tc.req)
if tc.err != nil {
require.Error(gErr)
+1 -1
View File
@@ -6,7 +6,7 @@ package common
import (
"database/sql"
_ "github.com/jackc/pgx/v4"
_ "github.com/jackc/pgx/v5"
)
func SqlOpen(driverName, dataSourceName string) (*sql.DB, error) {
+1 -1
View File
@@ -13,7 +13,7 @@ import (
"github.com/hashicorp/boundary/internal/errors"
"github.com/hashicorp/boundary/internal/observability/event"
"github.com/hashicorp/go-dbw"
_ "github.com/jackc/pgx/v4"
_ "github.com/jackc/pgx/v5"
"gorm.io/driver/postgres"
)
+1 -1
View File
@@ -16,7 +16,7 @@ import (
"github.com/hashicorp/boundary/internal/db/common"
wrapping "github.com/hashicorp/go-kms-wrapping/v2"
"github.com/hashicorp/go-kms-wrapping/v2/aead"
_ "github.com/jackc/pgx/v4/stdlib"
_ "github.com/jackc/pgx/v5/stdlib"
)
var testDBPort = "5432"
@@ -20,7 +20,7 @@ import (
"github.com/hashicorp/boundary/testing/internal/e2e/boundary"
"github.com/hashicorp/boundary/testing/internal/e2e/infra"
"github.com/hashicorp/boundary/testing/internal/e2e/vault"
_ "github.com/jackc/pgx/v4/stdlib"
_ "github.com/jackc/pgx/v5/stdlib"
"github.com/ory/dockertest/v3"
"github.com/ory/dockertest/v3/docker"
"github.com/stretchr/testify/require"