From 40976909c50125d9c0fbaf626e972dc93cee6b7d Mon Sep 17 00:00:00 2001 From: Jalin Wang Date: Tue, 30 Aug 2022 16:16:03 +0800 Subject: [PATCH] feat: rename module name --- .github/workflows/ci.yml | 4 ++-- adapter.go | 2 +- adapter_test.go | 2 +- go.mod | 4 ++-- go.sum | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 578c31a..ec16bcc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,7 @@ name: Go on: push: - branches: [ master ] + branches: [] pull_request: branches: [ master ] @@ -54,7 +54,7 @@ jobs: - uses: actions/checkout@v2 - name: Run semantic-release - if: github.repository == 'casbin/gorm-adapter' && github.event_name == 'push' + if: github.repository == 'casbin/gorm-adapter-ex' && github.event_name == 'push' run: | npm install --save-dev semantic-release@17.2.4 npx semantic-release diff --git a/adapter.go b/adapter.go index dcfe2d5..e882b22 100755 --- a/adapter.go +++ b/adapter.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package gormadapter +package gormadapterex import ( "context" diff --git a/adapter_test.go b/adapter_test.go index 6c7f46c..77a2ba9 100755 --- a/adapter_test.go +++ b/adapter_test.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package gormadapter +package gormadapterex import ( "fmt" diff --git a/go.mod b/go.mod index b235e7e..d581b27 100644 --- a/go.mod +++ b/go.mod @@ -1,9 +1,9 @@ -module github.com/casbin/gorm-adapter/v3 +module github.com/casbin/gorm-adapter-ex/v3 go 1.14 require ( - github.com/casbin/casbin/v2 v2.37.4 + github.com/casbin/casbin/v2 v2.52.2 github.com/glebarez/sqlite v1.4.3 github.com/go-sql-driver/mysql v1.6.0 github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 // indirect diff --git a/go.sum b/go.sum index a76cc82..7e84a72 100644 --- a/go.sum +++ b/go.sum @@ -6,8 +6,8 @@ github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible h1 github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= github.com/Masterminds/semver/v3 v3.1.1 h1:hLg3sBzpNErnxhQtUy/mmLR2I9foDujNK030IGemrRc= github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs= -github.com/casbin/casbin/v2 v2.37.4 h1:RWSKPjaZ8JlOBlcW1bI/FTII8OPxvQ9jVy9JwyNL6DQ= -github.com/casbin/casbin/v2 v2.37.4/go.mod h1:vByNa/Fchek0KZUgG5wEsl7iFsiviAYKRtgrQfcJqHg= +github.com/casbin/casbin/v2 v2.52.2 h1:abZxXXlFu0Yl9IR8h7awjtr+iQ4k4Hmzvgn7bdLenNk= +github.com/casbin/casbin/v2 v2.52.2/go.mod h1:vByNa/Fchek0KZUgG5wEsl7iFsiviAYKRtgrQfcJqHg= github.com/cockroachdb/apd v1.1.0 h1:3LFP3629v+1aKXU5Q37mxmRxX/pIu1nijXydLShEq5I= github.com/cockroachdb/apd v1.1.0/go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMeY4+DwBQ= github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=