This is an automated email from the ASF dual-hosted git repository.
hsluoyz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/casbin-ent-adapter.git
The following commit(s) were added to refs/heads/master by this push:
new e4796a7 feat!: update module path to
github.com/apache/casbin-ent-adapter
e4796a7 is described below
commit e4796a702dedd80daca0a189ac4ebd89c64a4727
Author: Yang Luo <[email protected]>
AuthorDate: Thu Aug 6 17:16:26 2026 +0800
feat!: update module path to github.com/apache/casbin-ent-adapter
---
.github/workflows/release.yml | 4 ++--
README.md | 24 ++++++++++++------------
adapter.go | 6 +++---
adapter_test.go | 2 +-
ent/casbinrule.go | 2 +-
ent/casbinrule/where.go | 2 +-
ent/casbinrule_create.go | 2 +-
ent/casbinrule_delete.go | 4 ++--
ent/casbinrule_query.go | 4 ++--
ent/casbinrule_update.go | 4 ++--
ent/client.go | 4 ++--
ent/ent.go | 2 +-
ent/enttest/enttest.go | 6 +++---
ent/hook/hook.go | 2 +-
ent/mutation.go | 4 ++--
ent/runtime.go | 4 ++--
ent/runtime/runtime.go | 2 +-
go.mod | 2 +-
18 files changed, 40 insertions(+), 40 deletions(-)
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 9a12953..6f26833 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -15,7 +15,7 @@ permissions:
jobs:
release:
- if: github.repository == 'casbin/ent-adapter'
+ if: github.repository == 'apache/casbin-ent-adapter'
runs-on: ubuntu-latest
outputs:
is-rc: ${{ steps.meta.outputs.is-rc }}
@@ -85,7 +85,7 @@ jobs:
- name: Publish to the Go module proxy
run: |
set -euo pipefail
- module="github.com/casbin/ent-adapter"
+ module="github.com/apache/casbin-ent-adapter"
version="${GITHUB_REF_NAME}"
# Go has no upload step: requesting the version from proxy.golang.org
diff --git a/README.md b/README.md
index dca4456..90eb448 100644
--- a/README.md
+++ b/README.md
@@ -1,14 +1,14 @@
Ent Adapter
====
-[](https://github.com/casbin/ent-adapter/actions/workflows/golangci-lint.yml)
-[](https://github.com/casbin/ent-adapter/actions/workflows/ci.yml)
-[](https://coveralls.io/github/casbin/ent-adapter?branch=master)
-[](https://pkg.go.dev/github.com/casbin/ent-adapter)
-[](https://github.com/casbin/ent-adapter/releases/latest)
+[](https://github.com/apache/casbin-ent-adapter/actions/workflows/golangci-lint.yml)
+[](https://github.com/apache/casbin-ent-adapter/actions/workflows/ci.yml)
+[](https://coveralls.io/github/apache/casbin-ent-adapter?branch=master)
+[](https://pkg.go.dev/github.com/apache/casbin-ent-adapter)
+[](https://github.com/apache/casbin-ent-adapter/releases/latest)
[](https://discord.gg/S5UjpzGZjN)
-Ent Adapter is the [Ent](https://entgo.io/) adapter for
[Casbin](https://github.com/casbin/casbin). With this library, Casbin can load
policy from Ent-supported databases or save policy to them.
+Ent Adapter is the [Ent](https://entgo.io/) adapter for
[Casbin](https://github.com/apache/casbin). With this library, Casbin can load
policy from Ent-supported databases or save policy to them.
Based on [Ent Supported Drivers](https://entgo.io/docs/sql-integration), the
current supported databases are:
@@ -20,7 +20,7 @@ Based on [Ent Supported
Drivers](https://entgo.io/docs/sql-integration), the cur
## Installation
```bash
-go get github.com/casbin/ent-adapter
+go get github.com/apache/casbin-ent-adapter
```
## Simple MySQL Example
@@ -30,7 +30,7 @@ package main
import (
"github.com/casbin/casbin/v3"
- entadapter "github.com/casbin/ent-adapter"
+ entadapter "github.com/apache/casbin-ent-adapter"
_ "github.com/go-sql-driver/mysql"
)
@@ -63,7 +63,7 @@ package main
import (
"github.com/casbin/casbin/v3"
- entadapter "github.com/casbin/ent-adapter"
+ entadapter "github.com/apache/casbin-ent-adapter"
_ "github.com/lib/pq"
)
@@ -98,8 +98,8 @@ package main
import (
"github.com/casbin/casbin/v3"
- entadapter "github.com/casbin/ent-adapter"
- "github.com/casbin/ent-adapter/ent"
+ entadapter "github.com/apache/casbin-ent-adapter"
+ "github.com/apache/casbin-ent-adapter/ent"
)
func main() {
@@ -127,7 +127,7 @@ The database used in the adapter should be created manually
before calling `NewA
## Getting Help
-- [Casbin](https://github.com/casbin/casbin)
+- [Casbin](https://github.com/apache/casbin)
## License
diff --git a/adapter.go b/adapter.go
index 05b8797..d006068 100644
--- a/adapter.go
+++ b/adapter.go
@@ -24,11 +24,11 @@ import (
"entgo.io/ent/dialect"
entsql "entgo.io/ent/dialect/sql"
"github.com/casbin/casbin/v3/persist"
- "github.com/casbin/ent-adapter/ent/casbinrule"
- "github.com/casbin/ent-adapter/ent/predicate"
+ "github.com/apache/casbin-ent-adapter/ent/casbinrule"
+ "github.com/apache/casbin-ent-adapter/ent/predicate"
"github.com/casbin/casbin/v3/model"
- "github.com/casbin/ent-adapter/ent"
+ "github.com/apache/casbin-ent-adapter/ent"
_ "github.com/go-sql-driver/mysql"
_ "github.com/jackc/pgx/v5/stdlib"
_ "github.com/lib/pq"
diff --git a/adapter_test.go b/adapter_test.go
index 9837f4d..c8d3412 100644
--- a/adapter_test.go
+++ b/adapter_test.go
@@ -22,7 +22,7 @@ import (
"github.com/casbin/casbin/v3/util"
"github.com/stretchr/testify/assert"
- "github.com/casbin/ent-adapter/ent"
+ "github.com/apache/casbin-ent-adapter/ent"
)
func testGetPolicy(t *testing.T, e *casbin.Enforcer, res [][]string) {
diff --git a/ent/casbinrule.go b/ent/casbinrule.go
index ba9fd34..55da6c2 100644
--- a/ent/casbinrule.go
+++ b/ent/casbinrule.go
@@ -8,7 +8,7 @@ import (
"entgo.io/ent"
"entgo.io/ent/dialect/sql"
- "github.com/casbin/ent-adapter/ent/casbinrule"
+ "github.com/apache/casbin-ent-adapter/ent/casbinrule"
)
// CasbinRule is the model entity for the CasbinRule schema.
diff --git a/ent/casbinrule/where.go b/ent/casbinrule/where.go
index c779990..523803b 100644
--- a/ent/casbinrule/where.go
+++ b/ent/casbinrule/where.go
@@ -4,7 +4,7 @@ package casbinrule
import (
"entgo.io/ent/dialect/sql"
- "github.com/casbin/ent-adapter/ent/predicate"
+ "github.com/apache/casbin-ent-adapter/ent/predicate"
)
// ID filters vertices based on their ID field.
diff --git a/ent/casbinrule_create.go b/ent/casbinrule_create.go
index 2aa99c0..b906adb 100644
--- a/ent/casbinrule_create.go
+++ b/ent/casbinrule_create.go
@@ -9,7 +9,7 @@ import (
"entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field"
- "github.com/casbin/ent-adapter/ent/casbinrule"
+ "github.com/apache/casbin-ent-adapter/ent/casbinrule"
)
// CasbinRuleCreate is the builder for creating a CasbinRule entity.
diff --git a/ent/casbinrule_delete.go b/ent/casbinrule_delete.go
index b13341c..deb45c3 100644
--- a/ent/casbinrule_delete.go
+++ b/ent/casbinrule_delete.go
@@ -8,8 +8,8 @@ import (
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field"
- "github.com/casbin/ent-adapter/ent/casbinrule"
- "github.com/casbin/ent-adapter/ent/predicate"
+ "github.com/apache/casbin-ent-adapter/ent/casbinrule"
+ "github.com/apache/casbin-ent-adapter/ent/predicate"
)
// CasbinRuleDelete is the builder for deleting a CasbinRule entity.
diff --git a/ent/casbinrule_query.go b/ent/casbinrule_query.go
index 655131f..a62eb35 100644
--- a/ent/casbinrule_query.go
+++ b/ent/casbinrule_query.go
@@ -11,8 +11,8 @@ import (
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field"
- "github.com/casbin/ent-adapter/ent/casbinrule"
- "github.com/casbin/ent-adapter/ent/predicate"
+ "github.com/apache/casbin-ent-adapter/ent/casbinrule"
+ "github.com/apache/casbin-ent-adapter/ent/predicate"
)
// CasbinRuleQuery is the builder for querying CasbinRule entities.
diff --git a/ent/casbinrule_update.go b/ent/casbinrule_update.go
index fb8e122..e54e7a3 100644
--- a/ent/casbinrule_update.go
+++ b/ent/casbinrule_update.go
@@ -10,8 +10,8 @@ import (
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/schema/field"
- "github.com/casbin/ent-adapter/ent/casbinrule"
- "github.com/casbin/ent-adapter/ent/predicate"
+ "github.com/apache/casbin-ent-adapter/ent/casbinrule"
+ "github.com/apache/casbin-ent-adapter/ent/predicate"
)
// CasbinRuleUpdate is the builder for updating CasbinRule entities.
diff --git a/ent/client.go b/ent/client.go
index 0453a2c..3cfafac 100644
--- a/ent/client.go
+++ b/ent/client.go
@@ -9,12 +9,12 @@ import (
"log"
"reflect"
- "github.com/casbin/ent-adapter/ent/migrate"
+ "github.com/apache/casbin-ent-adapter/ent/migrate"
"entgo.io/ent"
"entgo.io/ent/dialect"
"entgo.io/ent/dialect/sql"
- "github.com/casbin/ent-adapter/ent/casbinrule"
+ "github.com/apache/casbin-ent-adapter/ent/casbinrule"
)
// Client is the client that holds all ent builders.
diff --git a/ent/ent.go b/ent/ent.go
index 42dec14..e531dc0 100644
--- a/ent/ent.go
+++ b/ent/ent.go
@@ -12,7 +12,7 @@ import (
"entgo.io/ent"
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
- "github.com/casbin/ent-adapter/ent/casbinrule"
+ "github.com/apache/casbin-ent-adapter/ent/casbinrule"
)
// ent aliases to avoid import conflicts in user's code.
diff --git a/ent/enttest/enttest.go b/ent/enttest/enttest.go
index a56c14d..c21f725 100644
--- a/ent/enttest/enttest.go
+++ b/ent/enttest/enttest.go
@@ -5,12 +5,12 @@ package enttest
import (
"context"
- "github.com/casbin/ent-adapter/ent"
+ "github.com/apache/casbin-ent-adapter/ent"
// required by schema hooks.
- _ "github.com/casbin/ent-adapter/ent/runtime"
+ _ "github.com/apache/casbin-ent-adapter/ent/runtime"
"entgo.io/ent/dialect/sql/schema"
- "github.com/casbin/ent-adapter/ent/migrate"
+ "github.com/apache/casbin-ent-adapter/ent/migrate"
)
type (
diff --git a/ent/hook/hook.go b/ent/hook/hook.go
index 11a5ead..be2136e 100644
--- a/ent/hook/hook.go
+++ b/ent/hook/hook.go
@@ -6,7 +6,7 @@ import (
"context"
"fmt"
- "github.com/casbin/ent-adapter/ent"
+ "github.com/apache/casbin-ent-adapter/ent"
)
// The CasbinRuleFunc type is an adapter to allow the use of ordinary
diff --git a/ent/mutation.go b/ent/mutation.go
index e016001..0afb795 100644
--- a/ent/mutation.go
+++ b/ent/mutation.go
@@ -10,8 +10,8 @@ import (
"entgo.io/ent"
"entgo.io/ent/dialect/sql"
- "github.com/casbin/ent-adapter/ent/casbinrule"
- "github.com/casbin/ent-adapter/ent/predicate"
+ "github.com/apache/casbin-ent-adapter/ent/casbinrule"
+ "github.com/apache/casbin-ent-adapter/ent/predicate"
)
const (
diff --git a/ent/runtime.go b/ent/runtime.go
index 14f8500..d893770 100644
--- a/ent/runtime.go
+++ b/ent/runtime.go
@@ -3,8 +3,8 @@
package ent
import (
- "github.com/casbin/ent-adapter/ent/casbinrule"
- "github.com/casbin/ent-adapter/ent/schema"
+ "github.com/apache/casbin-ent-adapter/ent/casbinrule"
+ "github.com/apache/casbin-ent-adapter/ent/schema"
)
// The init function reads all schema descriptors with runtime code
diff --git a/ent/runtime/runtime.go b/ent/runtime/runtime.go
index bfe8e3e..1421e4b 100644
--- a/ent/runtime/runtime.go
+++ b/ent/runtime/runtime.go
@@ -2,7 +2,7 @@
package runtime
-// The schema-stitching logic is generated in
github.com/casbin/ent-adapter/ent/runtime.go
+// The schema-stitching logic is generated in
github.com/apache/casbin-ent-adapter/ent/runtime.go
const (
Version = "v0.14.5" // Version
of ent codegen.
diff --git a/go.mod b/go.mod
index 140530e..d771580 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module github.com/casbin/ent-adapter
+module github.com/apache/casbin-ent-adapter
go 1.24.11
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]