Skip to content

Commit

Permalink
feat: update pgx to v5.6.0 and use Go 1.20 (#24)
Browse files Browse the repository at this point in the history
* chore: update pgx to v5.6.0

Signed-off-by: Mazaa Fard <[email protected]>

* feat: update go to 1.19

* feat: update go to 1.20

* chore: fix ci

---------

Signed-off-by: Mazaa Fard <[email protected]>
Co-authored-by: Mazaa Fard <[email protected]>
  • Loading branch information
MuZhou233 and Mazafard authored Jul 26, 2024
1 parent f10a31d commit 4657ed9
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 140 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ jobs:

steps:
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: 1.14
go-version: '1.20'

- uses: actions/checkout@v2
- name: Run Unit tests
Expand Down
2 changes: 1 addition & 1 deletion adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"github.com/casbin/casbin/v2/model"
"github.com/casbin/ent-adapter/ent"
_ "github.com/go-sql-driver/mysql"
_ "github.com/jackc/pgx/v4/stdlib"
_ "github.com/jackc/pgx/v5/stdlib"
_ "github.com/lib/pq"

//_ "github.com/mattn/go-sqlite3"
Expand Down
19 changes: 17 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,14 +1,29 @@
module github.com/casbin/ent-adapter

go 1.14
go 1.20

require (
entgo.io/ent v0.8.0
github.com/casbin/casbin/v2 v2.29.2
github.com/go-sql-driver/mysql v1.5.1-0.20200311113236-681ffa848bae
github.com/jackc/pgx/v4 v4.18.1
github.com/jackc/pgx/v5 v5.6.0
github.com/lib/pq v1.10.2
//github.com/mattn/go-sqlite3 v1.14.6
github.com/pkg/errors v0.9.1
github.com/stretchr/testify v1.8.1
)

require (
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/google/uuid v1.2.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
github.com/jackc/puddle/v2 v2.2.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rogpeppe/go-internal v1.12.0 // indirect
golang.org/x/crypto v0.17.0 // indirect
golang.org/x/sync v0.1.0 // indirect
golang.org/x/text v0.14.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit 4657ed9

Please sign in to comment.