diff --git a/README.md b/README.md index 6b71ff776..361eea71a 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,14 @@ # Common Expression Language -[![Go Report Card](https://goreportcard.com/badge/github.com/google/cel-go)](https://goreportcard.com/report/github.com/google/cel-go) -[![GoDoc](https://godoc.org/github.com/google/cel-go?status.svg)][6] +[![Go Report Card](https://goreportcard.com/badge/github.com/authzed/cel-go)](https://goreportcard.com/report/github.com/authzed/cel-go) +[![GoDoc](https://godoc.org/github.com/authzed/cel-go?status.svg)][6] > [!WARNING] > **On June 16, 2026, this repository will move to > github.com/cel-expr/cel-go!** > > Please update your links and dependencies. See the [pinned -> issue](https://github.com/google/cel-go/issues/1329) for details. +> issue](https://github.com/authzed/cel-go/issues/1329) for details. The Common Expression Language (CEL) is a non-Turing complete language designed for simplicity, speed, safety, and portability. CEL's C-like [syntax][1] looks @@ -64,7 +64,7 @@ Let's expose `name` and `group` variables to CEL using the `cel.Variable` environment option: ```go -import "github.com/google/cel-go/cel" +import "github.com/authzed/cel-go/cel" env, err := cel.NewEnv( cel.Variable("name", cel.StringType), @@ -288,6 +288,6 @@ Released under the [Apache License](LICENSE). [1]: https://github.com/google/cel-spec [2]: https://groups.google.com/forum/#!forum/cel-go-discuss [3]: https://github.com/google/cel-cpp -[4]: https://github.com/google/cel-go/issues +[4]: https://github.com/authzed/cel-go/issues [5]: https://bazel.build -[6]: https://godoc.org/github.com/google/cel-go +[6]: https://godoc.org/github.com/authzed/cel-go diff --git a/cel/BUILD.bazel b/cel/BUILD.bazel index 62a56036a..4fd6b2070 100644 --- a/cel/BUILD.bazel +++ b/cel/BUILD.bazel @@ -23,7 +23,7 @@ go_library( "validator.go", ], embedsrcs = ["templates/authoring.tmpl"], - importpath = "github.com/google/cel-go/cel", + importpath = "github.com/authzed/cel-go/cel", visibility = ["//visibility:public"], deps = [ "//cel/async:go_default_library", diff --git a/cel/async/BUILD.bazel b/cel/async/BUILD.bazel index 85b28bcdb..34fa169eb 100644 --- a/cel/async/BUILD.bazel +++ b/cel/async/BUILD.bazel @@ -9,7 +9,7 @@ go_library( srcs = [ "async.go", ], - importpath = "github.com/google/cel-go/cel/async", + importpath = "github.com/authzed/cel-go/cel/async", visibility = ["//visibility:public"], deps = [ "//common/decls:go_default_library", diff --git a/cel/async/async.go b/cel/async/async.go index a011114bd..f76b9d37a 100644 --- a/cel/async/async.go +++ b/cel/async/async.go @@ -21,11 +21,11 @@ import ( "errors" "time" - "github.com/google/cel-go/common/decls" - "github.com/google/cel-go/common/functions" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/interpreter" + "github.com/authzed/cel-go/common/decls" + "github.com/authzed/cel-go/common/functions" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/interpreter" ) // Call describes a pending or completed asynchronous function call. diff --git a/cel/async/async_test.go b/cel/async/async_test.go index 71fe50de6..2ea197801 100644 --- a/cel/async/async_test.go +++ b/cel/async/async_test.go @@ -22,11 +22,11 @@ import ( "testing" "time" - "github.com/google/cel-go/cel/async" - "github.com/google/cel-go/common/decls" - "github.com/google/cel-go/common/functions" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/cel/async" + "github.com/authzed/cel-go/common/decls" + "github.com/authzed/cel-go/common/functions" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" ) type retryableTestErr struct{} diff --git a/cel/cel_example_test.go b/cel/cel_example_test.go index f4c11b598..b4d116e57 100644 --- a/cel/cel_example_test.go +++ b/cel/cel_example_test.go @@ -19,9 +19,9 @@ import ( "fmt" "log" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" ) func Example() { diff --git a/cel/cel_test.go b/cel/cel_test.go index 5aa0cbf7b..95b59bdcb 100644 --- a/cel/cel_test.go +++ b/cel/cel_test.go @@ -32,17 +32,17 @@ import ( "google.golang.org/protobuf/reflect/protodesc" "google.golang.org/protobuf/reflect/protoreflect" - "github.com/google/cel-go/checker" - celast "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/env" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/overloads" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" - "github.com/google/cel-go/interpreter" - "github.com/google/cel-go/parser" - "github.com/google/cel-go/test" + "github.com/authzed/cel-go/checker" + celast "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/env" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/overloads" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" + "github.com/authzed/cel-go/interpreter" + "github.com/authzed/cel-go/parser" + "github.com/authzed/cel-go/test" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" descpb "google.golang.org/protobuf/types/descriptorpb" @@ -51,8 +51,8 @@ import ( timestamppb "google.golang.org/protobuf/types/known/timestamppb" wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" - proto2pb "github.com/google/cel-go/test/proto2pb" - proto3pb "github.com/google/cel-go/test/proto3pb" + proto2pb "github.com/authzed/cel-go/test/proto2pb" + proto3pb "github.com/authzed/cel-go/test/proto3pb" ) func Test_ExampleWithBuiltins(t *testing.T) { diff --git a/cel/decls.go b/cel/decls.go index c7c23fd51..64e488d54 100644 --- a/cel/decls.go +++ b/cel/decls.go @@ -17,11 +17,11 @@ package cel import ( "fmt" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/decls" - "github.com/google/cel-go/common/functions" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/decls" + "github.com/authzed/cel-go/common/functions" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" celpb "cel.dev/expr" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" diff --git a/cel/decls_test.go b/cel/decls_test.go index 9024d74db..f3244b915 100644 --- a/cel/decls_test.go +++ b/cel/decls_test.go @@ -21,15 +21,15 @@ import ( "strings" "testing" - chkdecls "github.com/google/cel-go/checker/decls" - "github.com/google/cel-go/common/decls" - "github.com/google/cel-go/common/functions" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/overloads" - "github.com/google/cel-go/common/stdlib" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" + chkdecls "github.com/authzed/cel-go/checker/decls" + "github.com/authzed/cel-go/common/decls" + "github.com/authzed/cel-go/common/functions" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/overloads" + "github.com/authzed/cel-go/common/stdlib" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" ) diff --git a/cel/env.go b/cel/env.go index 784790ba2..b738fd141 100644 --- a/cel/env.go +++ b/cel/env.go @@ -22,19 +22,19 @@ import ( "strings" "sync" - "github.com/google/cel-go/checker" - chkdecls "github.com/google/cel-go/checker/decls" - "github.com/google/cel-go/common" - celast "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/containers" - "github.com/google/cel-go/common/decls" - "github.com/google/cel-go/common/env" - "github.com/google/cel-go/common/functions" - "github.com/google/cel-go/common/stdlib" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/interpreter" - "github.com/google/cel-go/parser" + "github.com/authzed/cel-go/checker" + chkdecls "github.com/authzed/cel-go/checker/decls" + "github.com/authzed/cel-go/common" + celast "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/containers" + "github.com/authzed/cel-go/common/decls" + "github.com/authzed/cel-go/common/env" + "github.com/authzed/cel-go/common/functions" + "github.com/authzed/cel-go/common/stdlib" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/interpreter" + "github.com/authzed/cel-go/parser" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" "google.golang.org/protobuf/reflect/protoreflect" diff --git a/cel/env_test.go b/cel/env_test.go index eb4c20850..6d7b5b836 100644 --- a/cel/env_test.go +++ b/cel/env_test.go @@ -23,17 +23,17 @@ import ( "sync" "testing" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/decls" - "github.com/google/cel-go/common/env" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/decls" + "github.com/authzed/cel-go/common/env" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" "google.golang.org/protobuf/proto" - proto3pb "github.com/google/cel-go/test/proto3pb" + proto3pb "github.com/authzed/cel-go/test/proto3pb" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" ) diff --git a/cel/fieldpaths.go b/cel/fieldpaths.go index 570fce3a4..57d02473b 100644 --- a/cel/fieldpaths.go +++ b/cel/fieldpaths.go @@ -4,8 +4,8 @@ import ( "slices" "strings" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/types" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/types" ) // fieldPath represents a selection path to a field from a variable in a CEL environment. diff --git a/cel/folding.go b/cel/folding.go index 5525f0805..17a7203d6 100644 --- a/cel/folding.go +++ b/cel/folding.go @@ -19,12 +19,12 @@ import ( "errors" "fmt" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/overloads" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/overloads" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" ) // ConstantFoldingOption defines a functional option for configuring constant folding. diff --git a/cel/folding_test.go b/cel/folding_test.go index 56dd789d4..da4cfc622 100644 --- a/cel/folding_test.go +++ b/cel/folding_test.go @@ -25,13 +25,13 @@ import ( "google.golang.org/protobuf/encoding/prototext" "google.golang.org/protobuf/proto" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/interpreter" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/interpreter" - proto3pb "github.com/google/cel-go/test/proto3pb" + proto3pb "github.com/authzed/cel-go/test/proto3pb" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" ) diff --git a/cel/inlining.go b/cel/inlining.go index d9a5e89a5..ffd15d4aa 100644 --- a/cel/inlining.go +++ b/cel/inlining.go @@ -15,12 +15,12 @@ package cel import ( - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/containers" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/overloads" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/traits" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/containers" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/overloads" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/traits" ) // InlineVariable holds a variable name to be matched and an AST representing diff --git a/cel/inlining_test.go b/cel/inlining_test.go index d9ad88b7a..06d678b01 100644 --- a/cel/inlining_test.go +++ b/cel/inlining_test.go @@ -17,9 +17,9 @@ package cel_test import ( "testing" - "github.com/google/cel-go/cel" + "github.com/authzed/cel-go/cel" - proto3pb "github.com/google/cel-go/test/proto3pb" + proto3pb "github.com/authzed/cel-go/test/proto3pb" ) func TestInliningOptimizerNoopShadow(t *testing.T) { diff --git a/cel/io.go b/cel/io.go index c991c95c3..f5a970715 100644 --- a/cel/io.go +++ b/cel/io.go @@ -21,12 +21,12 @@ import ( "google.golang.org/protobuf/proto" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" - "github.com/google/cel-go/parser" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" + "github.com/authzed/cel-go/parser" celpb "cel.dev/expr" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" diff --git a/cel/io_test.go b/cel/io_test.go index f0ef20a81..b1560cc71 100644 --- a/cel/io_test.go +++ b/cel/io_test.go @@ -22,13 +22,13 @@ import ( "google.golang.org/protobuf/proto" - "github.com/google/cel-go/checker/decls" - celast "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/checker/decls" + celast "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" - proto3pb "github.com/google/cel-go/test/proto3pb" + proto3pb "github.com/authzed/cel-go/test/proto3pb" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" ) diff --git a/cel/library.go b/cel/library.go index 332eb3f17..06b589e2b 100644 --- a/cel/library.go +++ b/cel/library.go @@ -18,18 +18,18 @@ import ( "fmt" "math" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/decls" - "github.com/google/cel-go/common/env" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/overloads" - "github.com/google/cel-go/common/stdlib" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" - "github.com/google/cel-go/interpreter" - "github.com/google/cel-go/parser" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/decls" + "github.com/authzed/cel-go/common/env" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/overloads" + "github.com/authzed/cel-go/common/stdlib" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" + "github.com/authzed/cel-go/interpreter" + "github.com/authzed/cel-go/parser" ) const ( diff --git a/cel/macro.go b/cel/macro.go index 3d3c5be1b..76a945cef 100644 --- a/cel/macro.go +++ b/cel/macro.go @@ -17,10 +17,10 @@ package cel import ( "fmt" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/parser" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/parser" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" ) diff --git a/cel/macro_test.go b/cel/macro_test.go index f6400b020..950693afb 100644 --- a/cel/macro_test.go +++ b/cel/macro_test.go @@ -17,8 +17,8 @@ package cel import ( "testing" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/ast" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/ast" ) func TestGlobalVarArgMacro(t *testing.T) { diff --git a/cel/optimizer.go b/cel/optimizer.go index 6e260a93c..acb931d02 100644 --- a/cel/optimizer.go +++ b/cel/optimizer.go @@ -18,10 +18,10 @@ import ( "fmt" "sort" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" ) // StaticOptimizer contains a sequence of ASTOptimizer instances which will be applied in order. diff --git a/cel/optimizer_test.go b/cel/optimizer_test.go index 04212d537..c616dd7dc 100644 --- a/cel/optimizer_test.go +++ b/cel/optimizer_test.go @@ -19,14 +19,14 @@ import ( "strings" "testing" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/ext" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/ext" "google.golang.org/protobuf/encoding/prototext" "google.golang.org/protobuf/proto" - proto3pb "github.com/google/cel-go/test/proto3pb" + proto3pb "github.com/authzed/cel-go/test/proto3pb" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" ) diff --git a/cel/options.go b/cel/options.go index 540ad38ba..65e4da3a8 100644 --- a/cel/options.go +++ b/cel/options.go @@ -24,17 +24,17 @@ import ( "google.golang.org/protobuf/reflect/protoregistry" "google.golang.org/protobuf/types/dynamicpb" - "github.com/google/cel-go/cel/async" - "github.com/google/cel-go/checker" - "github.com/google/cel-go/common/containers" - "github.com/google/cel-go/common/decls" - "github.com/google/cel-go/common/env" - "github.com/google/cel-go/common/functions" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/pb" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/interpreter" - "github.com/google/cel-go/parser" + "github.com/authzed/cel-go/cel/async" + "github.com/authzed/cel-go/checker" + "github.com/authzed/cel-go/common/containers" + "github.com/authzed/cel-go/common/decls" + "github.com/authzed/cel-go/common/env" + "github.com/authzed/cel-go/common/functions" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/pb" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/interpreter" + "github.com/authzed/cel-go/parser" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" descpb "google.golang.org/protobuf/types/descriptorpb" diff --git a/cel/program.go b/cel/program.go index 3a7589a71..5b1958fc2 100644 --- a/cel/program.go +++ b/cel/program.go @@ -20,12 +20,12 @@ import ( "fmt" "time" - "github.com/google/cel-go/cel/async" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/functions" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/interpreter" + "github.com/authzed/cel-go/cel/async" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/functions" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/interpreter" ) // Program is an evaluable view of an Ast. diff --git a/cel/program_async_test.go b/cel/program_async_test.go index 60750047d..15f298b3a 100644 --- a/cel/program_async_test.go +++ b/cel/program_async_test.go @@ -24,13 +24,13 @@ import ( "testing" "time" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/cel/async" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/ext" - "github.com/google/cel-go/interpreter" - "github.com/google/cel-go/test" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/cel/async" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/ext" + "github.com/authzed/cel-go/interpreter" + "github.com/authzed/cel-go/test" ) func TestConcurrentEval(t *testing.T) { diff --git a/cel/prompt.go b/cel/prompt.go index f59934827..05bd26e40 100644 --- a/cel/prompt.go +++ b/cel/prompt.go @@ -20,10 +20,10 @@ import ( "strings" "text/template" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/overloads" - "github.com/google/cel-go/common/types" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/overloads" + "github.com/authzed/cel-go/common/types" ) //go:embed templates/authoring.tmpl diff --git a/cel/prompt_test.go b/cel/prompt_test.go index 068211cb7..8e958d27e 100644 --- a/cel/prompt_test.go +++ b/cel/prompt_test.go @@ -20,8 +20,8 @@ import ( "sync" "testing" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/env" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/env" "github.com/google/go-cmp/cmp" "google.golang.org/protobuf/proto" diff --git a/cel/validator.go b/cel/validator.go index cb7f4c29e..130a65ded 100644 --- a/cel/validator.go +++ b/cel/validator.go @@ -20,9 +20,9 @@ import ( "reflect" "regexp" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/env" - "github.com/google/cel-go/common/overloads" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/env" + "github.com/authzed/cel-go/common/overloads" ) const ( diff --git a/cel/validator_test.go b/cel/validator_test.go index 606a5b6d9..e6465bfca 100644 --- a/cel/validator_test.go +++ b/cel/validator_test.go @@ -18,13 +18,13 @@ import ( "reflect" "testing" - celenv "github.com/google/cel-go/common/env" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/overloads" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" - "github.com/google/cel-go/test" + celenv "github.com/authzed/cel-go/common/env" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/overloads" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" + "github.com/authzed/cel-go/test" ) func TestValidateDurationLiterals(t *testing.T) { diff --git a/checker/BUILD.bazel b/checker/BUILD.bazel index 678b412a9..145c3e715 100644 --- a/checker/BUILD.bazel +++ b/checker/BUILD.bazel @@ -18,7 +18,7 @@ go_library( "scopes.go", "types.go", ], - importpath = "github.com/google/cel-go/checker", + importpath = "github.com/authzed/cel-go/checker", visibility = ["//visibility:public"], deps = [ "//checker/decls:go_default_library", diff --git a/checker/checker.go b/checker/checker.go index 42d27a428..b209703f3 100644 --- a/checker/checker.go +++ b/checker/checker.go @@ -22,13 +22,13 @@ import ( "slices" "strings" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/containers" - "github.com/google/cel-go/common/decls" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/containers" + "github.com/authzed/cel-go/common/decls" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" ) type checker struct { diff --git a/checker/checker_test.go b/checker/checker_test.go index 3e86ec577..7e520afe1 100644 --- a/checker/checker_test.go +++ b/checker/checker_test.go @@ -20,18 +20,18 @@ import ( "testing" "time" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/containers" - "github.com/google/cel-go/common/debug" - "github.com/google/cel-go/common/decls" - "github.com/google/cel-go/common/stdlib" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/parser" - "github.com/google/cel-go/test" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/containers" + "github.com/authzed/cel-go/common/debug" + "github.com/authzed/cel-go/common/decls" + "github.com/authzed/cel-go/common/stdlib" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/parser" + "github.com/authzed/cel-go/test" - proto2pb "github.com/google/cel-go/test/proto2pb" - proto3pb "github.com/google/cel-go/test/proto3pb" + proto2pb "github.com/authzed/cel-go/test/proto2pb" + proto3pb "github.com/authzed/cel-go/test/proto3pb" ) func testCases(t testing.TB) []testInfo { diff --git a/checker/cost.go b/checker/cost.go index 3d7dd7ec4..f1aebf298 100644 --- a/checker/cost.go +++ b/checker/cost.go @@ -17,11 +17,11 @@ package checker import ( "math" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/overloads" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/parser" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/overloads" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/parser" ) // WARNING: Any changes to cost calculations in this file require a corresponding change in interpreter/runtimecost.go diff --git a/checker/cost_test.go b/checker/cost_test.go index 5ee5a266f..9cc2bcbbc 100644 --- a/checker/cost_test.go +++ b/checker/cost_test.go @@ -19,15 +19,15 @@ import ( "strings" "testing" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/containers" - "github.com/google/cel-go/common/decls" - "github.com/google/cel-go/common/overloads" - "github.com/google/cel-go/common/stdlib" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/parser" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/containers" + "github.com/authzed/cel-go/common/decls" + "github.com/authzed/cel-go/common/overloads" + "github.com/authzed/cel-go/common/stdlib" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/parser" - proto3pb "github.com/google/cel-go/test/proto3pb" + proto3pb "github.com/authzed/cel-go/test/proto3pb" ) func TestCost(t *testing.T) { diff --git a/checker/decls/BUILD.bazel b/checker/decls/BUILD.bazel index a6b0be292..2ee0e4dfb 100644 --- a/checker/decls/BUILD.bazel +++ b/checker/decls/BUILD.bazel @@ -10,7 +10,7 @@ go_library( srcs = [ "decls.go", ], - importpath = "github.com/google/cel-go/checker/decls", + importpath = "github.com/authzed/cel-go/checker/decls", deps = [ "@org_golang_google_genproto_googleapis_api//expr/v1alpha1:go_default_library", "@org_golang_google_protobuf//types/known/emptypb:go_default_library", diff --git a/checker/env.go b/checker/env.go index 477918c48..9d3f5e3b5 100644 --- a/checker/env.go +++ b/checker/env.go @@ -18,11 +18,11 @@ import ( "fmt" "strings" - "github.com/google/cel-go/common/containers" - "github.com/google/cel-go/common/decls" - "github.com/google/cel-go/common/overloads" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/parser" + "github.com/authzed/cel-go/common/containers" + "github.com/authzed/cel-go/common/decls" + "github.com/authzed/cel-go/common/overloads" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/parser" ) type aggregateLiteralElementType int diff --git a/checker/env_test.go b/checker/env_test.go index 2ec7f13fa..8048d68ef 100644 --- a/checker/env_test.go +++ b/checker/env_test.go @@ -18,12 +18,12 @@ import ( "strings" "testing" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/containers" - "github.com/google/cel-go/common/decls" - "github.com/google/cel-go/common/stdlib" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/parser" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/containers" + "github.com/authzed/cel-go/common/decls" + "github.com/authzed/cel-go/common/stdlib" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/parser" ) func TestOverlappingMacro(t *testing.T) { diff --git a/checker/errors.go b/checker/errors.go index 3535440ba..399d1dd92 100644 --- a/checker/errors.go +++ b/checker/errors.go @@ -15,9 +15,9 @@ package checker import ( - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/types" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/types" ) // typeErrors is a specialization of Errors. diff --git a/checker/format.go b/checker/format.go index 95842905e..65655a41b 100644 --- a/checker/format.go +++ b/checker/format.go @@ -18,8 +18,8 @@ import ( "fmt" "strings" - chkdecls "github.com/google/cel-go/checker/decls" - "github.com/google/cel-go/common/types" + chkdecls "github.com/authzed/cel-go/checker/decls" + "github.com/authzed/cel-go/common/types" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" ) diff --git a/checker/format_test.go b/checker/format_test.go index c68b01c2f..6351d61a4 100644 --- a/checker/format_test.go +++ b/checker/format_test.go @@ -17,8 +17,8 @@ package checker import ( "testing" - "github.com/google/cel-go/checker/decls" - "github.com/google/cel-go/common/types" + "github.com/authzed/cel-go/checker/decls" + "github.com/authzed/cel-go/common/types" ) func TestFormatType(t *testing.T) { diff --git a/checker/mapping.go b/checker/mapping.go index 8163a908a..d5b3bdf26 100644 --- a/checker/mapping.go +++ b/checker/mapping.go @@ -15,7 +15,7 @@ package checker import ( - "github.com/google/cel-go/common/types" + "github.com/authzed/cel-go/common/types" ) type mapping struct { diff --git a/checker/printer.go b/checker/printer.go index 7a3984f02..deadde3bc 100644 --- a/checker/printer.go +++ b/checker/printer.go @@ -17,8 +17,8 @@ package checker import ( "sort" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/debug" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/debug" ) type semanticAdorner struct { diff --git a/checker/scopes.go b/checker/scopes.go index 9ae9832e1..d91b8c331 100644 --- a/checker/scopes.go +++ b/checker/scopes.go @@ -17,7 +17,7 @@ package checker import ( "strings" - "github.com/google/cel-go/common/decls" + "github.com/authzed/cel-go/common/decls" ) // Scopes represents nested Decl sets where the Scopes value contains a Groups containing all diff --git a/checker/types.go b/checker/types.go index 4c65b2737..e94d8c73f 100644 --- a/checker/types.go +++ b/checker/types.go @@ -15,7 +15,7 @@ package checker import ( - "github.com/google/cel-go/common/types" + "github.com/authzed/cel-go/common/types" ) // isDyn returns true if the input t is either type DYN or a well-known ANY message. diff --git a/codelab/README.md b/codelab/README.md index bf985c71b..5f6caa072 100644 --- a/codelab/README.md +++ b/codelab/README.md @@ -3,6 +3,6 @@ Find the codelab instructions [here](https://codelabs.developers.google.com/codelabs/cel-go/#0). It requires some knowledge of GoLang and Protobuf. -If you get stuck, check out the [solutions](https://github.com/google/cel-go/blob/master/codelab/solution/codelab.go). +If you get stuck, check out the [solutions](https://github.com/authzed/cel-go/blob/master/codelab/solution/codelab.go). -If you find a bug or want to make an improvement, PRs and issues are welcome. Please follow the [contributing guidelines](https://github.com/google/cel-go/blob/master/CONTRIBUTING.md). +If you find a bug or want to make an improvement, PRs and issues are welcome. Please follow the [contributing guidelines](https://github.com/authzed/cel-go/blob/master/CONTRIBUTING.md). diff --git a/codelab/codelab.go b/codelab/codelab.go index f533e7003..131f65ed6 100644 --- a/codelab/codelab.go +++ b/codelab/codelab.go @@ -24,10 +24,10 @@ import ( "strings" "time" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" "github.com/golang/glog" "google.golang.org/protobuf/encoding/protojson" diff --git a/codelab/go.mod b/codelab/go.mod index 58d84bb8b..fe627fead 100644 --- a/codelab/go.mod +++ b/codelab/go.mod @@ -1,4 +1,4 @@ -module github.com/google/cel-go/codelab +module github.com/authzed/cel-go/codelab go 1.22.0 @@ -6,7 +6,7 @@ toolchain go1.22.5 require ( github.com/golang/glog v1.2.4 - github.com/google/cel-go v0.21.0 + github.com/authzed/cel-go v0.21.0 google.golang.org/genproto/googleapis/rpc v0.0.0-20240826202546-f6391c0de4c7 google.golang.org/protobuf v1.34.2 ) @@ -19,4 +19,4 @@ require ( google.golang.org/genproto/googleapis/api v0.0.0-20240826202546-f6391c0de4c7 // indirect ) -replace github.com/google/cel-go => ../. +replace github.com/authzed/cel-go => ../. diff --git a/codelab/solution/codelab.go b/codelab/solution/codelab.go index b1bfb95d9..d1edf25c0 100644 --- a/codelab/solution/codelab.go +++ b/codelab/solution/codelab.go @@ -24,10 +24,10 @@ import ( "strings" "time" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" "github.com/golang/glog" "google.golang.org/protobuf/encoding/protojson" diff --git a/common/BUILD.bazel b/common/BUILD.bazel index 1b1b7914d..b1a5b82ab 100644 --- a/common/BUILD.bazel +++ b/common/BUILD.bazel @@ -15,7 +15,7 @@ go_library( "location.go", "source.go", ], - importpath = "github.com/google/cel-go/common", + importpath = "github.com/authzed/cel-go/common", deps = [ "//common/runes:go_default_library", "@org_golang_google_genproto_googleapis_api//expr/v1alpha1:go_default_library", diff --git a/common/ast/BUILD.bazel b/common/ast/BUILD.bazel index 9824f57a9..94ca875f9 100644 --- a/common/ast/BUILD.bazel +++ b/common/ast/BUILD.bazel @@ -14,7 +14,7 @@ go_library( "factory.go", "navigable.go", ], - importpath = "github.com/google/cel-go/common/ast", + importpath = "github.com/authzed/cel-go/common/ast", deps = [ "//common:go_default_library", "//common/types:go_default_library", diff --git a/common/ast/ast.go b/common/ast/ast.go index c8f8f8a02..e5f8db8df 100644 --- a/common/ast/ast.go +++ b/common/ast/ast.go @@ -18,9 +18,9 @@ package ast import ( "slices" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" ) // AST contains a protobuf expression and source info along with CEL-native type and reference information. diff --git a/common/ast/ast_test.go b/common/ast/ast_test.go index ee63171a6..3fd1d39a7 100644 --- a/common/ast/ast_test.go +++ b/common/ast/ast_test.go @@ -20,11 +20,11 @@ import ( "reflect" "testing" - "github.com/google/cel-go/checker" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/overloads" - "github.com/google/cel-go/common/types" + "github.com/authzed/cel-go/checker" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/overloads" + "github.com/authzed/cel-go/common/types" "google.golang.org/protobuf/encoding/prototext" "google.golang.org/protobuf/proto" ) diff --git a/common/ast/conversion.go b/common/ast/conversion.go index 380f8c118..c0fad20ad 100644 --- a/common/ast/conversion.go +++ b/common/ast/conversion.go @@ -19,8 +19,8 @@ import ( "google.golang.org/protobuf/proto" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" celpb "cel.dev/expr" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" diff --git a/common/ast/conversion_test.go b/common/ast/conversion_test.go index ecd50830b..02091ae97 100644 --- a/common/ast/conversion_test.go +++ b/common/ast/conversion_test.go @@ -23,14 +23,14 @@ import ( "google.golang.org/protobuf/encoding/prototext" "google.golang.org/protobuf/proto" - chkdecls "github.com/google/cel-go/checker/decls" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/overloads" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/parser" + chkdecls "github.com/authzed/cel-go/checker/decls" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/overloads" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/parser" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" ) diff --git a/common/ast/expr.go b/common/ast/expr.go index 9f55cb3b9..7c4a588d9 100644 --- a/common/ast/expr.go +++ b/common/ast/expr.go @@ -15,7 +15,7 @@ package ast import ( - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/ref" ) // ExprKind represents the expression node kind. diff --git a/common/ast/expr_test.go b/common/ast/expr_test.go index d32bf3fee..c550cf828 100644 --- a/common/ast/expr_test.go +++ b/common/ast/expr_test.go @@ -19,9 +19,9 @@ import ( "reflect" "testing" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/overloads" - "github.com/google/cel-go/common/types" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/overloads" + "github.com/authzed/cel-go/common/types" ) func TestSetKindCase(t *testing.T) { diff --git a/common/ast/factory.go b/common/ast/factory.go index d4dcde4d9..140ac8be5 100644 --- a/common/ast/factory.go +++ b/common/ast/factory.go @@ -14,7 +14,7 @@ package ast -import "github.com/google/cel-go/common/types/ref" +import "github.com/authzed/cel-go/common/types/ref" // ExprFactory interfaces defines a set of methods necessary for building native expression values. type ExprFactory interface { diff --git a/common/ast/navigable.go b/common/ast/navigable.go index 364edfa3a..091c6a6f5 100644 --- a/common/ast/navigable.go +++ b/common/ast/navigable.go @@ -15,8 +15,8 @@ package ast import ( - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" ) // NavigableExpr represents the base navigable expression value with methods to inspect the diff --git a/common/ast/navigable_test.go b/common/ast/navigable_test.go index 4a378546f..d6ea22c28 100644 --- a/common/ast/navigable_test.go +++ b/common/ast/navigable_test.go @@ -18,17 +18,17 @@ import ( "reflect" "testing" - "github.com/google/cel-go/checker" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/containers" - "github.com/google/cel-go/common/decls" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/stdlib" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/parser" + "github.com/authzed/cel-go/checker" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/containers" + "github.com/authzed/cel-go/common/decls" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/stdlib" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/parser" - proto3pb "github.com/google/cel-go/test/proto3pb" + proto3pb "github.com/authzed/cel-go/test/proto3pb" ) func TestNavigateAST(t *testing.T) { diff --git a/common/containers/BUILD.bazel b/common/containers/BUILD.bazel index 81197f064..8e4a4c538 100644 --- a/common/containers/BUILD.bazel +++ b/common/containers/BUILD.bazel @@ -10,7 +10,7 @@ go_library( srcs = [ "container.go", ], - importpath = "github.com/google/cel-go/common/containers", + importpath = "github.com/authzed/cel-go/common/containers", deps = [ "//common/ast:go_default_library", ], diff --git a/common/containers/container.go b/common/containers/container.go index fcfcdfc3f..2eab44b4a 100644 --- a/common/containers/container.go +++ b/common/containers/container.go @@ -21,7 +21,7 @@ import ( "strings" "unicode" - "github.com/google/cel-go/common/ast" + "github.com/authzed/cel-go/common/ast" ) var ( diff --git a/common/containers/container_test.go b/common/containers/container_test.go index 2ccdfd6ee..8bb6ffb36 100644 --- a/common/containers/container_test.go +++ b/common/containers/container_test.go @@ -19,7 +19,7 @@ import ( "reflect" "testing" - "github.com/google/cel-go/common/ast" + "github.com/authzed/cel-go/common/ast" ) func TestContainers_ResolveCandidateNames(t *testing.T) { diff --git a/common/debug/BUILD.bazel b/common/debug/BUILD.bazel index 724ed3404..24d8d40d0 100644 --- a/common/debug/BUILD.bazel +++ b/common/debug/BUILD.bazel @@ -10,7 +10,7 @@ go_library( srcs = [ "debug.go", ], - importpath = "github.com/google/cel-go/common/debug", + importpath = "github.com/authzed/cel-go/common/debug", deps = [ "//common:go_default_library", "//common/ast:go_default_library", diff --git a/common/debug/debug.go b/common/debug/debug.go index fbc847f0c..c195e2d51 100644 --- a/common/debug/debug.go +++ b/common/debug/debug.go @@ -22,9 +22,9 @@ import ( "strconv" "strings" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" ) // Adorner returns debug metadata that will be tacked on to the string diff --git a/common/decls/BUILD.bazel b/common/decls/BUILD.bazel index bd3f9ae70..7d87692ab 100644 --- a/common/decls/BUILD.bazel +++ b/common/decls/BUILD.bazel @@ -10,7 +10,7 @@ go_library( srcs = [ "decls.go", ], - importpath = "github.com/google/cel-go/common/decls", + importpath = "github.com/authzed/cel-go/common/decls", deps = [ "//checker/decls:go_default_library", "//common:go_default_library", diff --git a/common/decls/decls.go b/common/decls/decls.go index 51cb689e5..56c7ea8c4 100644 --- a/common/decls/decls.go +++ b/common/decls/decls.go @@ -20,12 +20,12 @@ import ( "fmt" "strings" - chkdecls "github.com/google/cel-go/checker/decls" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/functions" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + chkdecls "github.com/authzed/cel-go/checker/decls" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/functions" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" ) diff --git a/common/decls/decls_test.go b/common/decls/decls_test.go index ca26eb690..113580766 100644 --- a/common/decls/decls_test.go +++ b/common/decls/decls_test.go @@ -23,13 +23,13 @@ import ( "google.golang.org/protobuf/proto" - chkdecls "github.com/google/cel-go/checker/decls" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/overloads" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" + chkdecls "github.com/authzed/cel-go/checker/decls" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/overloads" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" ) diff --git a/common/env/BUILD.bazel b/common/env/BUILD.bazel index 261da924d..81e70fbc1 100644 --- a/common/env/BUILD.bazel +++ b/common/env/BUILD.bazel @@ -25,7 +25,7 @@ go_library( "env.go", "io.go", ], - importpath = "github.com/google/cel-go/common/env", + importpath = "github.com/authzed/cel-go/common/env", deps = [ "//common:go_default_library", "//common/decls:go_default_library", diff --git a/common/env/env.go b/common/env/env.go index 936036ed2..bc6e06ba5 100644 --- a/common/env/env.go +++ b/common/env/env.go @@ -22,8 +22,8 @@ import ( "strconv" "strings" - "github.com/google/cel-go/common/decls" - "github.com/google/cel-go/common/types" + "github.com/authzed/cel-go/common/decls" + "github.com/authzed/cel-go/common/types" ) // NewConfig creates an instance of a YAML serializable CEL environment configuration. diff --git a/common/env/env_test.go b/common/env/env_test.go index 9ee4ce6f6..6ee20367a 100644 --- a/common/env/env_test.go +++ b/common/env/env_test.go @@ -25,11 +25,11 @@ import ( "go.yaml.in/yaml/v3" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/decls" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/overloads" - "github.com/google/cel-go/common/types" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/decls" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/overloads" + "github.com/authzed/cel-go/common/types" ) func TestConfig(t *testing.T) { diff --git a/common/functions/BUILD.bazel b/common/functions/BUILD.bazel index 3cc27d60c..92ca48bbc 100644 --- a/common/functions/BUILD.bazel +++ b/common/functions/BUILD.bazel @@ -10,7 +10,7 @@ go_library( srcs = [ "functions.go", ], - importpath = "github.com/google/cel-go/common/functions", + importpath = "github.com/authzed/cel-go/common/functions", deps = [ "//common/types/ref:go_default_library", ], diff --git a/common/functions/functions.go b/common/functions/functions.go index 0c00781d9..09703d331 100644 --- a/common/functions/functions.go +++ b/common/functions/functions.go @@ -18,7 +18,7 @@ package functions import ( "context" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/ref" ) // Overload defines a named overload of a function, indicating an operand trait diff --git a/common/operators/BUILD.bazel b/common/operators/BUILD.bazel index b5b67f062..869c82e79 100644 --- a/common/operators/BUILD.bazel +++ b/common/operators/BUILD.bazel @@ -10,5 +10,5 @@ go_library( srcs = [ "operators.go", ], - importpath = "github.com/google/cel-go/common/operators", + importpath = "github.com/authzed/cel-go/common/operators", ) diff --git a/common/overloads/BUILD.bazel b/common/overloads/BUILD.bazel index e46e2f483..3a1f47fda 100644 --- a/common/overloads/BUILD.bazel +++ b/common/overloads/BUILD.bazel @@ -10,5 +10,5 @@ go_library( srcs = [ "overloads.go", ], - importpath = "github.com/google/cel-go/common/overloads", + importpath = "github.com/authzed/cel-go/common/overloads", ) diff --git a/common/runes/BUILD.bazel b/common/runes/BUILD.bazel index bb30242cf..658969ffe 100644 --- a/common/runes/BUILD.bazel +++ b/common/runes/BUILD.bazel @@ -10,7 +10,7 @@ go_library( srcs = [ "buffer.go", ], - importpath = "github.com/google/cel-go/common/runes", + importpath = "github.com/authzed/cel-go/common/runes", ) go_test( diff --git a/common/source.go b/common/source.go index 9187e9b5c..bc1413c95 100644 --- a/common/source.go +++ b/common/source.go @@ -15,7 +15,7 @@ package common import ( - "github.com/google/cel-go/common/runes" + "github.com/authzed/cel-go/common/runes" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" ) diff --git a/common/stdlib/BUILD.bazel b/common/stdlib/BUILD.bazel index 124dbea81..23f19a8af 100644 --- a/common/stdlib/BUILD.bazel +++ b/common/stdlib/BUILD.bazel @@ -10,7 +10,7 @@ go_library( srcs = [ "standard.go", ], - importpath = "github.com/google/cel-go/common/stdlib", + importpath = "github.com/authzed/cel-go/common/stdlib", deps = [ "//common:go_default_library", "//common/decls:go_default_library", diff --git a/common/stdlib/standard.go b/common/stdlib/standard.go index d2313bef1..e2ea809ce 100644 --- a/common/stdlib/standard.go +++ b/common/stdlib/standard.go @@ -21,14 +21,14 @@ import ( "strings" "time" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/decls" - "github.com/google/cel-go/common/functions" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/overloads" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/decls" + "github.com/authzed/cel-go/common/functions" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/overloads" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" ) var ( diff --git a/common/types/BUILD.bazel b/common/types/BUILD.bazel index 37d4df495..89ac60e37 100644 --- a/common/types/BUILD.bazel +++ b/common/types/BUILD.bazel @@ -33,7 +33,7 @@ go_library( "unknown.go", "util.go", ], - importpath = "github.com/google/cel-go/common/types", + importpath = "github.com/authzed/cel-go/common/types", deps = [ "//checker/decls:go_default_library", "//common/overloads:go_default_library", diff --git a/common/types/bool.go b/common/types/bool.go index 5f1e4573e..d987fef07 100644 --- a/common/types/bool.go +++ b/common/types/bool.go @@ -20,7 +20,7 @@ import ( "strconv" "strings" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/ref" anypb "google.golang.org/protobuf/types/known/anypb" structpb "google.golang.org/protobuf/types/known/structpb" diff --git a/common/types/bytes.go b/common/types/bytes.go index 2eefb5d7f..5671625c1 100644 --- a/common/types/bytes.go +++ b/common/types/bytes.go @@ -22,7 +22,7 @@ import ( "strings" "unicode/utf8" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/ref" anypb "google.golang.org/protobuf/types/known/anypb" structpb "google.golang.org/protobuf/types/known/structpb" diff --git a/common/types/compare.go b/common/types/compare.go index e19682618..8a9b05bf5 100644 --- a/common/types/compare.go +++ b/common/types/compare.go @@ -17,7 +17,7 @@ package types import ( "math" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/ref" ) func compareDoubleInt(d Double, i Int) Int { diff --git a/common/types/double.go b/common/types/double.go index 02abfee2d..07a956fdd 100644 --- a/common/types/double.go +++ b/common/types/double.go @@ -21,7 +21,7 @@ import ( "strconv" "strings" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/ref" anypb "google.golang.org/protobuf/types/known/anypb" structpb "google.golang.org/protobuf/types/known/structpb" diff --git a/common/types/double_test.go b/common/types/double_test.go index 47e875f29..7f3002a50 100644 --- a/common/types/double_test.go +++ b/common/types/double_test.go @@ -23,8 +23,8 @@ import ( "google.golang.org/protobuf/proto" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" anypb "google.golang.org/protobuf/types/known/anypb" structpb "google.golang.org/protobuf/types/known/structpb" diff --git a/common/types/duration.go b/common/types/duration.go index 220714773..a7bbe07f8 100644 --- a/common/types/duration.go +++ b/common/types/duration.go @@ -21,8 +21,8 @@ import ( "strings" "time" - "github.com/google/cel-go/common/overloads" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/overloads" + "github.com/authzed/cel-go/common/types/ref" anypb "google.golang.org/protobuf/types/known/anypb" dpb "google.golang.org/protobuf/types/known/durationpb" diff --git a/common/types/duration_test.go b/common/types/duration_test.go index f0e4509e8..7694ec54c 100644 --- a/common/types/duration_test.go +++ b/common/types/duration_test.go @@ -22,8 +22,8 @@ import ( "google.golang.org/protobuf/proto" - "github.com/google/cel-go/common/overloads" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/overloads" + "github.com/authzed/cel-go/common/types/ref" anypb "google.golang.org/protobuf/types/known/anypb" dpb "google.golang.org/protobuf/types/known/durationpb" diff --git a/common/types/err.go b/common/types/err.go index 3216ff1c4..dd99b1b75 100644 --- a/common/types/err.go +++ b/common/types/err.go @@ -19,7 +19,7 @@ import ( "fmt" "reflect" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/ref" ) // Error interface which allows types types.Err values to be treated as error values. diff --git a/common/types/format.go b/common/types/format.go index 174a2bd04..89c2dacaa 100644 --- a/common/types/format.go +++ b/common/types/format.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" ) type formattable interface { diff --git a/common/types/int.go b/common/types/int.go index 60d5a7160..6b99d1fb4 100644 --- a/common/types/int.go +++ b/common/types/int.go @@ -22,7 +22,7 @@ import ( "strings" "time" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/ref" anypb "google.golang.org/protobuf/types/known/anypb" structpb "google.golang.org/protobuf/types/known/structpb" diff --git a/common/types/int_test.go b/common/types/int_test.go index 560c3dfb2..60c4d7b86 100644 --- a/common/types/int_test.go +++ b/common/types/int_test.go @@ -24,8 +24,8 @@ import ( "google.golang.org/protobuf/proto" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" anypb "google.golang.org/protobuf/types/known/anypb" structpb "google.golang.org/protobuf/types/known/structpb" diff --git a/common/types/iterator.go b/common/types/iterator.go index 98e9147b6..0d7913b15 100644 --- a/common/types/iterator.go +++ b/common/types/iterator.go @@ -18,8 +18,8 @@ import ( "fmt" "reflect" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" ) var ( diff --git a/common/types/json_list_test.go b/common/types/json_list_test.go index 0d8cff093..d3d59e7b9 100644 --- a/common/types/json_list_test.go +++ b/common/types/json_list_test.go @@ -19,7 +19,7 @@ import ( "reflect" "testing" - "github.com/google/cel-go/common/types/traits" + "github.com/authzed/cel-go/common/types/traits" "google.golang.org/protobuf/proto" anypb "google.golang.org/protobuf/types/known/anypb" diff --git a/common/types/list.go b/common/types/list.go index 028770ed6..b6452c295 100644 --- a/common/types/list.go +++ b/common/types/list.go @@ -22,8 +22,8 @@ import ( "google.golang.org/protobuf/proto" "google.golang.org/protobuf/reflect/protoreflect" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" anypb "google.golang.org/protobuf/types/known/anypb" structpb "google.golang.org/protobuf/types/known/structpb" diff --git a/common/types/list_test.go b/common/types/list_test.go index ca134b716..8f8168fbe 100644 --- a/common/types/list_test.go +++ b/common/types/list_test.go @@ -24,8 +24,8 @@ import ( "google.golang.org/protobuf/encoding/protojson" "google.golang.org/protobuf/proto" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" anypb "google.golang.org/protobuf/types/known/anypb" dpb "google.golang.org/protobuf/types/known/durationpb" diff --git a/common/types/map.go b/common/types/map.go index e4d6f7657..22207458a 100644 --- a/common/types/map.go +++ b/common/types/map.go @@ -24,9 +24,9 @@ import ( "google.golang.org/protobuf/proto" "google.golang.org/protobuf/reflect/protoreflect" - "github.com/google/cel-go/common/types/pb" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" + "github.com/authzed/cel-go/common/types/pb" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" anypb "google.golang.org/protobuf/types/known/anypb" structpb "google.golang.org/protobuf/types/known/structpb" diff --git a/common/types/map_test.go b/common/types/map_test.go index 81989120d..e33673797 100644 --- a/common/types/map_test.go +++ b/common/types/map_test.go @@ -26,11 +26,11 @@ import ( "google.golang.org/protobuf/encoding/protojson" "google.golang.org/protobuf/proto" - "github.com/google/cel-go/common/types/pb" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" + "github.com/authzed/cel-go/common/types/pb" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" - proto3pb "github.com/google/cel-go/test/proto3pb" + proto3pb "github.com/authzed/cel-go/test/proto3pb" anypb "google.golang.org/protobuf/types/known/anypb" structpb "google.golang.org/protobuf/types/known/structpb" tpb "google.golang.org/protobuf/types/known/timestamppb" diff --git a/common/types/null.go b/common/types/null.go index 671e1ee5c..835cc0618 100644 --- a/common/types/null.go +++ b/common/types/null.go @@ -21,7 +21,7 @@ import ( "google.golang.org/protobuf/proto" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/ref" anypb "google.golang.org/protobuf/types/known/anypb" structpb "google.golang.org/protobuf/types/known/structpb" diff --git a/common/types/null_test.go b/common/types/null_test.go index 97ec24c10..33a82b761 100644 --- a/common/types/null_test.go +++ b/common/types/null_test.go @@ -22,7 +22,7 @@ import ( "google.golang.org/protobuf/proto" - proto3pb "github.com/google/cel-go/test/proto3pb" + proto3pb "github.com/authzed/cel-go/test/proto3pb" dynamicpb "google.golang.org/protobuf/types/dynamicpb" anypb "google.golang.org/protobuf/types/known/anypb" structpb "google.golang.org/protobuf/types/known/structpb" diff --git a/common/types/object.go b/common/types/object.go index bb2a09e87..d6dcac796 100644 --- a/common/types/object.go +++ b/common/types/object.go @@ -24,8 +24,8 @@ import ( "google.golang.org/protobuf/proto" "google.golang.org/protobuf/reflect/protoreflect" - "github.com/google/cel-go/common/types/pb" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/pb" + "github.com/authzed/cel-go/common/types/ref" anypb "google.golang.org/protobuf/types/known/anypb" structpb "google.golang.org/protobuf/types/known/structpb" diff --git a/common/types/object_test.go b/common/types/object_test.go index b2e2207ea..18def0120 100644 --- a/common/types/object_test.go +++ b/common/types/object_test.go @@ -22,8 +22,8 @@ import ( "google.golang.org/protobuf/encoding/protojson" "google.golang.org/protobuf/proto" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" anypb "google.golang.org/protobuf/types/known/anypb" diff --git a/common/types/optional.go b/common/types/optional.go index 0d861823d..7c0418110 100644 --- a/common/types/optional.go +++ b/common/types/optional.go @@ -20,7 +20,7 @@ import ( "reflect" "strings" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/ref" ) var ( diff --git a/common/types/optional_test.go b/common/types/optional_test.go index 89f28d7e7..faf1c2e6c 100644 --- a/common/types/optional_test.go +++ b/common/types/optional_test.go @@ -19,7 +19,7 @@ import ( "reflect" "testing" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/ref" ) func TestOptionalOptionalOf(t *testing.T) { diff --git a/common/types/pb/BUILD.bazel b/common/types/pb/BUILD.bazel index e2b9d37b5..0c79e718a 100644 --- a/common/types/pb/BUILD.bazel +++ b/common/types/pb/BUILD.bazel @@ -15,7 +15,7 @@ go_library( "pb.go", "type.go", ], - importpath = "github.com/google/cel-go/common/types/pb", + importpath = "github.com/authzed/cel-go/common/types/pb", deps = [ "@org_golang_google_genproto_googleapis_api//expr/v1alpha1:go_default_library", "@org_golang_google_protobuf//encoding/protowire:go_default_library", diff --git a/common/types/pb/equal_test.go b/common/types/pb/equal_test.go index 83254e4f6..0f7ac3138 100644 --- a/common/types/pb/equal_test.go +++ b/common/types/pb/equal_test.go @@ -20,7 +20,7 @@ import ( "google.golang.org/protobuf/proto" - proto3pb "github.com/google/cel-go/test/proto3pb" + proto3pb "github.com/authzed/cel-go/test/proto3pb" anypb "google.golang.org/protobuf/types/known/anypb" ) diff --git a/common/types/pb/file_test.go b/common/types/pb/file_test.go index d0c4da607..dde847fa8 100644 --- a/common/types/pb/file_test.go +++ b/common/types/pb/file_test.go @@ -21,10 +21,10 @@ import ( "google.golang.org/protobuf/reflect/protodesc" "google.golang.org/protobuf/reflect/protoreflect" - "github.com/google/cel-go/checker/decls" + "github.com/authzed/cel-go/checker/decls" - proto2pb "github.com/google/cel-go/test/proto2pb" - proto3pb "github.com/google/cel-go/test/proto3pb" + proto2pb "github.com/authzed/cel-go/test/proto2pb" + proto3pb "github.com/authzed/cel-go/test/proto3pb" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" descpb "google.golang.org/protobuf/types/descriptorpb" ) diff --git a/common/types/pb/pb_test.go b/common/types/pb/pb_test.go index aef1c02b4..45260f203 100644 --- a/common/types/pb/pb_test.go +++ b/common/types/pb/pb_test.go @@ -21,8 +21,8 @@ import ( "google.golang.org/protobuf/reflect/protodesc" "google.golang.org/protobuf/reflect/protoreflect" - proto2pb "github.com/google/cel-go/test/proto2pb" - proto3pb "github.com/google/cel-go/test/proto3pb" + proto2pb "github.com/authzed/cel-go/test/proto2pb" + proto3pb "github.com/authzed/cel-go/test/proto3pb" descpb "google.golang.org/protobuf/types/descriptorpb" dynamicpb "google.golang.org/protobuf/types/dynamicpb" durationpb "google.golang.org/protobuf/types/known/durationpb" diff --git a/common/types/pb/type_test.go b/common/types/pb/type_test.go index fed1a3d0d..630e06286 100644 --- a/common/types/pb/type_test.go +++ b/common/types/pb/type_test.go @@ -19,11 +19,11 @@ import ( "testing" "time" - "github.com/google/cel-go/checker/decls" + "github.com/authzed/cel-go/checker/decls" "google.golang.org/protobuf/proto" - proto2pb "github.com/google/cel-go/test/proto2pb" - proto3pb "github.com/google/cel-go/test/proto3pb" + proto2pb "github.com/authzed/cel-go/test/proto2pb" + proto3pb "github.com/authzed/cel-go/test/proto3pb" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" dynamicpb "google.golang.org/protobuf/types/dynamicpb" anypb "google.golang.org/protobuf/types/known/anypb" diff --git a/common/types/provider.go b/common/types/provider.go index 1bb2c11ed..c76c1fefd 100644 --- a/common/types/provider.go +++ b/common/types/provider.go @@ -22,9 +22,9 @@ import ( "google.golang.org/protobuf/proto" "google.golang.org/protobuf/reflect/protoreflect" - "github.com/google/cel-go/common/types/pb" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" + "github.com/authzed/cel-go/common/types/pb" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" anypb "google.golang.org/protobuf/types/known/anypb" diff --git a/common/types/provider_test.go b/common/types/provider_test.go index 552ac1836..3f8fa206b 100644 --- a/common/types/provider_test.go +++ b/common/types/provider_test.go @@ -23,11 +23,11 @@ import ( "testing" "time" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" "google.golang.org/protobuf/proto" - proto3pb "github.com/google/cel-go/test/proto3pb" + proto3pb "github.com/authzed/cel-go/test/proto3pb" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" anypb "google.golang.org/protobuf/types/known/anypb" dpb "google.golang.org/protobuf/types/known/durationpb" diff --git a/common/types/ref/BUILD.bazel b/common/types/ref/BUILD.bazel index 79330c332..65ccb68f3 100644 --- a/common/types/ref/BUILD.bazel +++ b/common/types/ref/BUILD.bazel @@ -11,7 +11,7 @@ go_library( "provider.go", "reference.go", ], - importpath = "github.com/google/cel-go/common/types/ref", + importpath = "github.com/authzed/cel-go/common/types/ref", deps = [ "@org_golang_google_genproto_googleapis_api//expr/v1alpha1:go_default_library", "@org_golang_google_protobuf//proto:go_default_library", diff --git a/common/types/string.go b/common/types/string.go index 1335903a7..0d73db5eb 100644 --- a/common/types/string.go +++ b/common/types/string.go @@ -22,8 +22,8 @@ import ( "strings" "time" - "github.com/google/cel-go/common/overloads" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/overloads" + "github.com/authzed/cel-go/common/types/ref" anypb "google.golang.org/protobuf/types/known/anypb" structpb "google.golang.org/protobuf/types/known/structpb" diff --git a/common/types/string_test.go b/common/types/string_test.go index daf8fdc54..1914e4e11 100644 --- a/common/types/string_test.go +++ b/common/types/string_test.go @@ -22,8 +22,8 @@ import ( "google.golang.org/protobuf/proto" - "github.com/google/cel-go/common/overloads" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/overloads" + "github.com/authzed/cel-go/common/types/ref" anypb "google.golang.org/protobuf/types/known/anypb" structpb "google.golang.org/protobuf/types/known/structpb" diff --git a/common/types/timestamp.go b/common/types/timestamp.go index 62a020d97..c830851eb 100644 --- a/common/types/timestamp.go +++ b/common/types/timestamp.go @@ -23,8 +23,8 @@ import ( "time" "unicode" - "github.com/google/cel-go/common/overloads" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/overloads" + "github.com/authzed/cel-go/common/types/ref" anypb "google.golang.org/protobuf/types/known/anypb" structpb "google.golang.org/protobuf/types/known/structpb" diff --git a/common/types/timestamp_test.go b/common/types/timestamp_test.go index 7661c878a..615f94f17 100644 --- a/common/types/timestamp_test.go +++ b/common/types/timestamp_test.go @@ -21,8 +21,8 @@ import ( "testing" "time" - "github.com/google/cel-go/common/overloads" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/overloads" + "github.com/authzed/cel-go/common/types/ref" "google.golang.org/protobuf/proto" diff --git a/common/types/traits/BUILD.bazel b/common/types/traits/BUILD.bazel index b19eb8301..5d054f56c 100644 --- a/common/types/traits/BUILD.bazel +++ b/common/types/traits/BUILD.bazel @@ -22,7 +22,7 @@ go_library( "traits.go", "zeroer.go", ], - importpath = "github.com/google/cel-go/common/types/traits", + importpath = "github.com/authzed/cel-go/common/types/traits", deps = [ "//common/types/ref:go_default_library", ], diff --git a/common/types/traits/comparer.go b/common/types/traits/comparer.go index b531d9ae2..4888da175 100644 --- a/common/types/traits/comparer.go +++ b/common/types/traits/comparer.go @@ -15,7 +15,7 @@ package traits import ( - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/ref" ) // Comparer interface for ordering comparisons between values in order to diff --git a/common/types/traits/container.go b/common/types/traits/container.go index cf5c621ae..fd6c607bf 100644 --- a/common/types/traits/container.go +++ b/common/types/traits/container.go @@ -14,7 +14,7 @@ package traits -import "github.com/google/cel-go/common/types/ref" +import "github.com/authzed/cel-go/common/types/ref" // Container interface which permits containment tests such as 'a in b'. type Container interface { diff --git a/common/types/traits/field_tester.go b/common/types/traits/field_tester.go index 816a95652..865ea6a07 100644 --- a/common/types/traits/field_tester.go +++ b/common/types/traits/field_tester.go @@ -15,7 +15,7 @@ package traits import ( - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/ref" ) // FieldTester indicates if a defined field on an object type is set to a diff --git a/common/types/traits/indexer.go b/common/types/traits/indexer.go index 662c6836c..ce8a13af2 100644 --- a/common/types/traits/indexer.go +++ b/common/types/traits/indexer.go @@ -15,7 +15,7 @@ package traits import ( - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/ref" ) // Indexer permits random access of elements by index 'a[b()]'. diff --git a/common/types/traits/iterator.go b/common/types/traits/iterator.go index 91c10f08f..d7b42aa77 100644 --- a/common/types/traits/iterator.go +++ b/common/types/traits/iterator.go @@ -15,7 +15,7 @@ package traits import ( - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/ref" ) // Iterable aggregate types permit traversal over their elements. diff --git a/common/types/traits/lister.go b/common/types/traits/lister.go index e54781a60..e9a17f116 100644 --- a/common/types/traits/lister.go +++ b/common/types/traits/lister.go @@ -14,7 +14,7 @@ package traits -import "github.com/google/cel-go/common/types/ref" +import "github.com/authzed/cel-go/common/types/ref" // Lister interface which aggregates the traits of a list. type Lister interface { diff --git a/common/types/traits/mapper.go b/common/types/traits/mapper.go index d13333f3f..f7ba9e05f 100644 --- a/common/types/traits/mapper.go +++ b/common/types/traits/mapper.go @@ -14,7 +14,7 @@ package traits -import "github.com/google/cel-go/common/types/ref" +import "github.com/authzed/cel-go/common/types/ref" // Mapper interface which aggregates the traits of a maps. type Mapper interface { diff --git a/common/types/traits/matcher.go b/common/types/traits/matcher.go index 085dc94ff..5b7aae7a6 100644 --- a/common/types/traits/matcher.go +++ b/common/types/traits/matcher.go @@ -14,7 +14,7 @@ package traits -import "github.com/google/cel-go/common/types/ref" +import "github.com/authzed/cel-go/common/types/ref" // Matcher interface for supporting 'matches()' overloads. type Matcher interface { diff --git a/common/types/traits/math.go b/common/types/traits/math.go index 86d5b9137..4062ff90a 100644 --- a/common/types/traits/math.go +++ b/common/types/traits/math.go @@ -14,7 +14,7 @@ package traits -import "github.com/google/cel-go/common/types/ref" +import "github.com/authzed/cel-go/common/types/ref" // Adder interface to support '+' operator overloads. type Adder interface { diff --git a/common/types/traits/receiver.go b/common/types/traits/receiver.go index 8f41db45e..ad3e2e985 100644 --- a/common/types/traits/receiver.go +++ b/common/types/traits/receiver.go @@ -14,7 +14,7 @@ package traits -import "github.com/google/cel-go/common/types/ref" +import "github.com/authzed/cel-go/common/types/ref" // Receiver interface for routing instance method calls within a value. type Receiver interface { diff --git a/common/types/traits/sizer.go b/common/types/traits/sizer.go index b80d25137..85583d6b6 100644 --- a/common/types/traits/sizer.go +++ b/common/types/traits/sizer.go @@ -15,7 +15,7 @@ package traits import ( - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/ref" ) // Sizer interface for supporting 'size()' overloads. diff --git a/common/types/type_test.go b/common/types/type_test.go index a63d17057..8e90b033f 100644 --- a/common/types/type_test.go +++ b/common/types/type_test.go @@ -17,7 +17,7 @@ package types import ( "testing" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/ref" ) func TestType_ConvertToType(t *testing.T) { diff --git a/common/types/types.go b/common/types/types.go index 78c77a9b5..417376b45 100644 --- a/common/types/types.go +++ b/common/types/types.go @@ -21,9 +21,9 @@ import ( "google.golang.org/protobuf/proto" - chkdecls "github.com/google/cel-go/checker/decls" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" + chkdecls "github.com/authzed/cel-go/checker/decls" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" celpb "cel.dev/expr" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" diff --git a/common/types/types_test.go b/common/types/types_test.go index c91d7148a..3d69e7224 100644 --- a/common/types/types_test.go +++ b/common/types/types_test.go @@ -22,8 +22,8 @@ import ( "google.golang.org/protobuf/proto" - chkdecls "github.com/google/cel-go/checker/decls" - "github.com/google/cel-go/common/types/traits" + chkdecls "github.com/authzed/cel-go/checker/decls" + "github.com/authzed/cel-go/common/types/traits" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" ) diff --git a/common/types/uint.go b/common/types/uint.go index 91d5369da..1676de780 100644 --- a/common/types/uint.go +++ b/common/types/uint.go @@ -21,7 +21,7 @@ import ( "strconv" "strings" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/ref" anypb "google.golang.org/protobuf/types/known/anypb" structpb "google.golang.org/protobuf/types/known/structpb" diff --git a/common/types/uint_test.go b/common/types/uint_test.go index 2484fbf36..926c84f38 100644 --- a/common/types/uint_test.go +++ b/common/types/uint_test.go @@ -23,8 +23,8 @@ import ( "google.golang.org/protobuf/proto" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" anypb "google.golang.org/protobuf/types/known/anypb" structpb "google.golang.org/protobuf/types/known/structpb" diff --git a/common/types/unknown.go b/common/types/unknown.go index f43aff18e..9ee22ebdf 100644 --- a/common/types/unknown.go +++ b/common/types/unknown.go @@ -23,7 +23,7 @@ import ( "strings" "unicode" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/ref" ) var ( diff --git a/common/types/unknown_test.go b/common/types/unknown_test.go index 593708950..4ae841ed7 100644 --- a/common/types/unknown_test.go +++ b/common/types/unknown_test.go @@ -21,7 +21,7 @@ import ( "strings" "testing" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/ref" ) func TestIsUnknown(t *testing.T) { diff --git a/common/types/util.go b/common/types/util.go index 71662eee3..5dd0f9e92 100644 --- a/common/types/util.go +++ b/common/types/util.go @@ -15,7 +15,7 @@ package types import ( - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/ref" ) // IsUnknownOrError returns whether the input element ref.Val is an ErrType or UnknownType. diff --git a/conformance/conformance_test.go b/conformance/conformance_test.go index 417310287..1f7c0b43f 100644 --- a/conformance/conformance_test.go +++ b/conformance/conformance_test.go @@ -11,12 +11,12 @@ import ( "github.com/bazelbuild/rules_go/go/runfiles" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/ext" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/ext" "github.com/google/go-cmp/cmp" "google.golang.org/protobuf/encoding/prototext" diff --git a/conformance/go.mod b/conformance/go.mod index f5e6a2cc6..15bd36b6a 100644 --- a/conformance/go.mod +++ b/conformance/go.mod @@ -1,11 +1,11 @@ -module github.com/google/cel-go/conformance +module github.com/authzed/cel-go/conformance go 1.23.0 require ( cel.dev/expr v0.25.1 github.com/bazelbuild/rules_go v0.49.0 - github.com/google/cel-go v0.26.1 + github.com/authzed/cel-go v0.26.1 github.com/google/go-cmp v0.7.0 google.golang.org/protobuf v1.36.10 ) @@ -19,4 +19,4 @@ require ( google.golang.org/genproto/googleapis/rpc v0.0.0-20240826202546-f6391c0de4c7 // indirect ) -replace github.com/google/cel-go => ./.. +replace github.com/authzed/cel-go => ./.. diff --git a/conformance/policy/policy_conformance_test.go b/conformance/policy/policy_conformance_test.go index d718f1778..2cc1563c6 100644 --- a/conformance/policy/policy_conformance_test.go +++ b/conformance/policy/policy_conformance_test.go @@ -24,12 +24,12 @@ import ( "testing" "github.com/bazelbuild/rules_go/go/runfiles" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/policy" - "github.com/google/cel-go/tools/celtest" - "github.com/google/cel-go/tools/compiler" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/policy" + "github.com/authzed/cel-go/tools/celtest" + "github.com/authzed/cel-go/tools/compiler" _ "cel.dev/expr/conformance/proto3" ) diff --git a/examples/README.md b/examples/README.md index 4e739f660..2e12245f5 100644 --- a/examples/README.md +++ b/examples/README.md @@ -15,7 +15,7 @@ import ( "fmt" "log" - "github.com/google/cel-go/cel" + "github.com/authzed/cel-go/cel" ) func main() { diff --git a/examples/example_cel_advanced_test.go b/examples/example_cel_advanced_test.go index a04a9ded5..b537ce4ae 100644 --- a/examples/example_cel_advanced_test.go +++ b/examples/example_cel_advanced_test.go @@ -17,7 +17,7 @@ package examples import ( "fmt" - "github.com/google/cel-go/cel" + "github.com/authzed/cel-go/cel" ) // Example_cel_CommonErrors showcases handling common runtime errors (division by zero, index out of bounds, missing key) diff --git a/examples/example_cel_collections_test.go b/examples/example_cel_collections_test.go index 93c2110b6..a3422033f 100644 --- a/examples/example_cel_collections_test.go +++ b/examples/example_cel_collections_test.go @@ -18,7 +18,7 @@ import ( "fmt" "log" - "github.com/google/cel-go/cel" + "github.com/authzed/cel-go/cel" ) // Example_cel_Collections showcases membership, indexing, search (exists), all, and filter diff --git a/examples/example_cel_compile_test.go b/examples/example_cel_compile_test.go index 7a7f3a42c..fbe170944 100644 --- a/examples/example_cel_compile_test.go +++ b/examples/example_cel_compile_test.go @@ -18,8 +18,8 @@ import ( "fmt" "log" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/ext" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/ext" ) // Example_cel_Compile showcases compiling a CEL expression with variable declarations diff --git a/examples/example_cel_context_eval_test.go b/examples/example_cel_context_eval_test.go index 18f51d712..e4804036d 100644 --- a/examples/example_cel_context_eval_test.go +++ b/examples/example_cel_context_eval_test.go @@ -19,7 +19,7 @@ import ( "fmt" "log" - "github.com/google/cel-go/cel" + "github.com/authzed/cel-go/cel" ) // Example_cel_ContextEval showcases evaluation cancellation and timeout using ContextEval diff --git a/examples/example_cel_custom_functions_test.go b/examples/example_cel_custom_functions_test.go index 0664ff0d3..20628b88d 100644 --- a/examples/example_cel_custom_functions_test.go +++ b/examples/example_cel_custom_functions_test.go @@ -18,9 +18,9 @@ import ( "fmt" "log" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" ) // Example_cel_Overload showcases defining custom global functions with cel.Overload diff --git a/examples/example_cel_custom_macros_test.go b/examples/example_cel_custom_macros_test.go index b970415f4..30e07be1f 100644 --- a/examples/example_cel_custom_macros_test.go +++ b/examples/example_cel_custom_macros_test.go @@ -18,12 +18,12 @@ import ( "fmt" "log" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/parser" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/parser" ) // Example_cel_CustomMacros showcases defining custom AST transformation macros diff --git a/examples/example_cel_execution_cost_test.go b/examples/example_cel_execution_cost_test.go index 69e6411b5..4e80dba7b 100644 --- a/examples/example_cel_execution_cost_test.go +++ b/examples/example_cel_execution_cost_test.go @@ -19,9 +19,9 @@ import ( "log" "strings" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/checker" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/checker" + "github.com/authzed/cel-go/common/types/ref" ) type exampleCostEstimator struct { diff --git a/examples/example_cel_logic_and_conditions_test.go b/examples/example_cel_logic_and_conditions_test.go index ed3d9792c..40e3b7a19 100644 --- a/examples/example_cel_logic_and_conditions_test.go +++ b/examples/example_cel_logic_and_conditions_test.go @@ -18,7 +18,7 @@ import ( "fmt" "log" - "github.com/google/cel-go/cel" + "github.com/authzed/cel-go/cel" ) // Example_cel_LogicAndConditions showcases logical operators, conditional (ternary) operator, and evaluation diff --git a/examples/example_cel_native_structs_test.go b/examples/example_cel_native_structs_test.go index 076a254db..00750d264 100644 --- a/examples/example_cel_native_structs_test.go +++ b/examples/example_cel_native_structs_test.go @@ -19,8 +19,8 @@ import ( "log" "reflect" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/ext" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/ext" ) type User struct { diff --git a/examples/example_cel_operators_test.go b/examples/example_cel_operators_test.go index 895079af3..e6625da92 100644 --- a/examples/example_cel_operators_test.go +++ b/examples/example_cel_operators_test.go @@ -18,7 +18,7 @@ import ( "fmt" "log" - "github.com/google/cel-go/cel" + "github.com/authzed/cel-go/cel" ) // Example_cel_Arithmetic showcases negation, basic operations, modulo, and precedence diff --git a/examples/example_cel_protocol_buffers_test.go b/examples/example_cel_protocol_buffers_test.go index 26a46bc6c..ce622757e 100644 --- a/examples/example_cel_protocol_buffers_test.go +++ b/examples/example_cel_protocol_buffers_test.go @@ -18,8 +18,8 @@ import ( "fmt" "log" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/test/proto3pb" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/test/proto3pb" "google.golang.org/protobuf/types/known/structpb" "google.golang.org/protobuf/types/known/wrapperspb" ) diff --git a/examples/example_cel_strings_and_numbers_test.go b/examples/example_cel_strings_and_numbers_test.go index 8be7cc820..3c253ba85 100644 --- a/examples/example_cel_strings_and_numbers_test.go +++ b/examples/example_cel_strings_and_numbers_test.go @@ -18,8 +18,8 @@ import ( "fmt" "log" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/ext" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/ext" ) // Example_cel_StringsAndNumbers showcases string functions, concatenation, and numeric comparisons diff --git a/examples/example_cel_time_test.go b/examples/example_cel_time_test.go index 448e6a977..62395cda5 100644 --- a/examples/example_cel_time_test.go +++ b/examples/example_cel_time_test.go @@ -18,7 +18,7 @@ import ( "fmt" "log" - "github.com/google/cel-go/cel" + "github.com/authzed/cel-go/cel" ) // Example_cel_TimestampsAndDurations showcases timestamps, durations, arithmetic, and field access diff --git a/examples/example_cel_transforming_data_test.go b/examples/example_cel_transforming_data_test.go index 594582cf8..a0432f17d 100644 --- a/examples/example_cel_transforming_data_test.go +++ b/examples/example_cel_transforming_data_test.go @@ -18,7 +18,7 @@ import ( "fmt" "log" - "github.com/google/cel-go/cel" + "github.com/authzed/cel-go/cel" ) // Example_cel_TransformingData showcases building maps, transforming lists with map(), diff --git a/examples/example_cel_type_conversions_test.go b/examples/example_cel_type_conversions_test.go index 1681e6c0a..95c252f6b 100644 --- a/examples/example_cel_type_conversions_test.go +++ b/examples/example_cel_type_conversions_test.go @@ -18,7 +18,7 @@ import ( "fmt" "log" - "github.com/google/cel-go/cel" + "github.com/authzed/cel-go/cel" ) // Example_cel_TypeConversions showcases type casting functions (int, uint, double, string, bytes, dyn) diff --git a/ext/BUILD.bazel b/ext/BUILD.bazel index f362fd97b..3d8631351 100644 --- a/ext/BUILD.bazel +++ b/ext/BUILD.bazel @@ -24,7 +24,7 @@ go_library( "sets.go", "strings.go", ], - importpath = "github.com/google/cel-go/ext", + importpath = "github.com/authzed/cel-go/ext", visibility = ["//visibility:public"], deps = [ "//cel:go_default_library", diff --git a/ext/bindings.go b/ext/bindings.go index 89766d60a..e0eefa1c1 100644 --- a/ext/bindings.go +++ b/ext/bindings.go @@ -22,12 +22,12 @@ import ( "strings" "sync" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" - "github.com/google/cel-go/interpreter" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" + "github.com/authzed/cel-go/interpreter" ) // Bindings returns a cel.EnvOption to configure support for local variable diff --git a/ext/bindings_test.go b/ext/bindings_test.go index 4999cc416..5d8490edc 100644 --- a/ext/bindings_test.go +++ b/ext/bindings_test.go @@ -20,14 +20,14 @@ import ( "sync" "testing" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/checker" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/interpreter" - "github.com/google/cel-go/test" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/checker" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/interpreter" + "github.com/authzed/cel-go/test" ) var bindingTests = []struct { diff --git a/ext/comprehensions.go b/ext/comprehensions.go index adb22912b..6fab5c98e 100644 --- a/ext/comprehensions.go +++ b/ext/comprehensions.go @@ -18,13 +18,13 @@ import ( "fmt" "math" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" - "github.com/google/cel-go/parser" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" + "github.com/authzed/cel-go/parser" ) const ( diff --git a/ext/comprehensions_test.go b/ext/comprehensions_test.go index 986547d97..c7ba2f86f 100644 --- a/ext/comprehensions_test.go +++ b/ext/comprehensions_test.go @@ -19,10 +19,10 @@ import ( "strings" "testing" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/checker" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/interpreter" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/checker" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/interpreter" ) func TestTwoVarComprehensions(t *testing.T) { diff --git a/ext/costs.go b/ext/costs.go index d2cf7c757..bfec2cb9e 100644 --- a/ext/costs.go +++ b/ext/costs.go @@ -17,12 +17,12 @@ package ext import ( "math" - "github.com/google/cel-go/checker" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" + "github.com/authzed/cel-go/checker" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" ) var ( diff --git a/ext/encoders.go b/ext/encoders.go index 97fc932a5..302e9aefe 100644 --- a/ext/encoders.go +++ b/ext/encoders.go @@ -20,11 +20,11 @@ import ( "fmt" "math" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/checker" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/interpreter" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/checker" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/interpreter" "google.golang.org/protobuf/encoding/protojson" "google.golang.org/protobuf/types/known/structpb" ) diff --git a/ext/encoders_test.go b/ext/encoders_test.go index dde2200da..51dd9f7e0 100644 --- a/ext/encoders_test.go +++ b/ext/encoders_test.go @@ -20,8 +20,8 @@ import ( "strings" "testing" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/checker" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/checker" ) func TestEncoders(t *testing.T) { diff --git a/ext/extension_option_factory.go b/ext/extension_option_factory.go index e68cf5bc7..5b1a64f8c 100644 --- a/ext/extension_option_factory.go +++ b/ext/extension_option_factory.go @@ -17,8 +17,8 @@ package ext import ( "fmt" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/env" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/env" ) // ExtensionOptionFactory converts an ExtensionConfig value to a CEL environment option. diff --git a/ext/extension_option_factory_test.go b/ext/extension_option_factory_test.go index 603aedf53..e6a66ba55 100644 --- a/ext/extension_option_factory_test.go +++ b/ext/extension_option_factory_test.go @@ -18,8 +18,8 @@ import ( "fmt" "testing" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/env" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/env" ) func TestExtensionOptionFactoryInvalidExtension(t *testing.T) { diff --git a/ext/formatting.go b/ext/formatting.go index 35fb17048..5409086f6 100644 --- a/ext/formatting.go +++ b/ext/formatting.go @@ -26,12 +26,12 @@ import ( "golang.org/x/text/language" "golang.org/x/text/message" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/overloads" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/overloads" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" ) type clauseImpl func(ref.Val, string) (string, error) diff --git a/ext/formatting_test.go b/ext/formatting_test.go index e77e3a936..4cc3ac1b2 100644 --- a/ext/formatting_test.go +++ b/ext/formatting_test.go @@ -24,12 +24,12 @@ import ( "google.golang.org/protobuf/proto" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/checker" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/checker" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" - proto3pb "github.com/google/cel-go/test/proto3pb" + proto3pb "github.com/authzed/cel-go/test/proto3pb" ) func TestStringFormat(t *testing.T) { diff --git a/ext/formatting_v2.go b/ext/formatting_v2.go index f923cc7e1..3972998c2 100644 --- a/ext/formatting_v2.go +++ b/ext/formatting_v2.go @@ -24,11 +24,11 @@ import ( "time" "unicode" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" ) type clauseImplV2 func(ref.Val) (string, error) diff --git a/ext/formatting_v2_test.go b/ext/formatting_v2_test.go index a183dba38..9f2edbc67 100644 --- a/ext/formatting_v2_test.go +++ b/ext/formatting_v2_test.go @@ -24,12 +24,12 @@ import ( "google.golang.org/protobuf/proto" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/checker" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/checker" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" - proto3pb "github.com/google/cel-go/test/proto3pb" + proto3pb "github.com/authzed/cel-go/test/proto3pb" ) func TestStringsWithExtensionV2(t *testing.T) { diff --git a/ext/guards.go b/ext/guards.go index 1461c0416..4606a64ce 100644 --- a/ext/guards.go +++ b/ext/guards.go @@ -15,9 +15,9 @@ package ext import ( - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" ) // function invocation guards for common call signatures within extension functions. diff --git a/ext/lists.go b/ext/lists.go index 3d0e67642..af1e3adf0 100644 --- a/ext/lists.go +++ b/ext/lists.go @@ -19,16 +19,16 @@ import ( "math" "sort" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/checker" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/decls" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" - "github.com/google/cel-go/interpreter" - "github.com/google/cel-go/parser" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/checker" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/decls" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" + "github.com/authzed/cel-go/interpreter" + "github.com/authzed/cel-go/parser" ) var comparableTypes = []*cel.Type{ diff --git a/ext/lists_test.go b/ext/lists_test.go index bf01801cb..ec7817f4f 100644 --- a/ext/lists_test.go +++ b/ext/lists_test.go @@ -19,11 +19,11 @@ import ( "strings" "testing" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/checker" - "github.com/google/cel-go/common/types" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/checker" + "github.com/authzed/cel-go/common/types" - proto2pb "github.com/google/cel-go/test/proto2pb" + proto2pb "github.com/authzed/cel-go/test/proto2pb" ) func TestLists(t *testing.T) { diff --git a/ext/math.go b/ext/math.go index e67b205de..fb1859adc 100644 --- a/ext/math.go +++ b/ext/math.go @@ -19,13 +19,13 @@ import ( "math" "strings" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/checker" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" - "github.com/google/cel-go/interpreter" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/checker" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" + "github.com/authzed/cel-go/interpreter" ) // Math returns a cel.EnvOption to configure namespaced math helper macros and diff --git a/ext/math_test.go b/ext/math_test.go index 8b47cae64..413be8e8c 100644 --- a/ext/math_test.go +++ b/ext/math_test.go @@ -19,9 +19,9 @@ import ( "strings" "testing" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/checker" - "github.com/google/cel-go/common/types" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/checker" + "github.com/authzed/cel-go/common/types" ) func TestMath(t *testing.T) { diff --git a/ext/native.go b/ext/native.go index d9f5fab0d..81f3e9279 100644 --- a/ext/native.go +++ b/ext/native.go @@ -25,11 +25,11 @@ import ( "google.golang.org/protobuf/proto" "google.golang.org/protobuf/reflect/protoreflect" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/pb" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/pb" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" structpb "google.golang.org/protobuf/types/known/structpb" ) diff --git a/ext/native_test.go b/ext/native_test.go index 75c024d1e..3a37194aa 100644 --- a/ext/native_test.go +++ b/ext/native_test.go @@ -26,16 +26,16 @@ import ( "google.golang.org/protobuf/encoding/protojson" "google.golang.org/protobuf/proto" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/pb" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" - "github.com/google/cel-go/test" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/pb" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" + "github.com/authzed/cel-go/test" structpb "google.golang.org/protobuf/types/known/structpb" - proto3pb "github.com/google/cel-go/test/proto3pb" + proto3pb "github.com/authzed/cel-go/test/proto3pb" ) func TestNativeTypes(t *testing.T) { diff --git a/ext/network.go b/ext/network.go index bca065707..e1177d70b 100644 --- a/ext/network.go +++ b/ext/network.go @@ -20,12 +20,12 @@ import ( "net/netip" "reflect" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/checker" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/interpreter" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/checker" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/interpreter" ) const ( diff --git a/ext/network_test.go b/ext/network_test.go index 592c07494..28dad5429 100644 --- a/ext/network_test.go +++ b/ext/network_test.go @@ -19,9 +19,9 @@ import ( "reflect" "testing" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/checker" - "github.com/google/cel-go/common/types" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/checker" + "github.com/authzed/cel-go/common/types" ) func TestNetwork_Success(t *testing.T) { diff --git a/ext/protos.go b/ext/protos.go index b09db25b0..a425dcf7c 100644 --- a/ext/protos.go +++ b/ext/protos.go @@ -17,8 +17,8 @@ package ext import ( "math" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/ast" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/ast" ) // Protos returns a cel.EnvOption to configure extended macros and functions for diff --git a/ext/protos_test.go b/ext/protos_test.go index 739dddf3d..6c5aede00 100644 --- a/ext/protos_test.go +++ b/ext/protos_test.go @@ -20,13 +20,13 @@ import ( "google.golang.org/protobuf/proto" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" - "github.com/google/cel-go/test" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" + "github.com/authzed/cel-go/test" - proto2pb "github.com/google/cel-go/test/proto2pb" + proto2pb "github.com/authzed/cel-go/test/proto2pb" wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" ) diff --git a/ext/regex.go b/ext/regex.go index bd222f170..fb0c2a70a 100644 --- a/ext/regex.go +++ b/ext/regex.go @@ -22,12 +22,12 @@ import ( "strconv" "strings" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/checker" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/interpreter" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/checker" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/interpreter" ) const ( diff --git a/ext/regex_test.go b/ext/regex_test.go index 24c5582ea..cd0722bd2 100644 --- a/ext/regex_test.go +++ b/ext/regex_test.go @@ -19,8 +19,8 @@ import ( "strings" "testing" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/checker" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/checker" ) func TestRegex(t *testing.T) { diff --git a/ext/sets.go b/ext/sets.go index 63c019ad9..79e256b22 100644 --- a/ext/sets.go +++ b/ext/sets.go @@ -15,14 +15,14 @@ package ext import ( - "github.com/google/cel-go/cel" - "github.com/google/cel-go/checker" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" - "github.com/google/cel-go/interpreter" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/checker" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" + "github.com/authzed/cel-go/interpreter" ) // Sets returns a cel.EnvOption to configure namespaced set relationship diff --git a/ext/sets_test.go b/ext/sets_test.go index 4ea409b67..92182ade8 100644 --- a/ext/sets_test.go +++ b/ext/sets_test.go @@ -20,12 +20,12 @@ import ( "strings" "testing" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/checker" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/checker" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" - proto3pb "github.com/google/cel-go/test/proto3pb" + proto3pb "github.com/authzed/cel-go/test/proto3pb" ) func TestSets(t *testing.T) { diff --git a/ext/strings.go b/ext/strings.go index 1f7732f2f..5e5b433fe 100644 --- a/ext/strings.go +++ b/ext/strings.go @@ -27,13 +27,13 @@ import ( "golang.org/x/text/language" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/checker" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" - "github.com/google/cel-go/interpreter" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/checker" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" + "github.com/authzed/cel-go/interpreter" ) const ( diff --git a/ext/strings_test.go b/ext/strings_test.go index 276a3efd5..23e07e465 100644 --- a/ext/strings_test.go +++ b/ext/strings_test.go @@ -21,10 +21,10 @@ import ( "time" "unicode/utf8" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/checker" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/checker" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" ) // TODO: move these tests to a conformance test. diff --git a/go.mod b/go.mod index ad223de71..b5226a335 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/google/cel-go +module github.com/authzed/cel-go go 1.23.0 diff --git a/interpreter/BUILD.bazel b/interpreter/BUILD.bazel index 40ac2ba69..2a349f0bf 100644 --- a/interpreter/BUILD.bazel +++ b/interpreter/BUILD.bazel @@ -23,7 +23,7 @@ go_library( "prune.go", "runtimecost.go", ], - importpath = "github.com/google/cel-go/interpreter", + importpath = "github.com/authzed/cel-go/interpreter", deps = [ "//common:go_default_library", "//common/ast:go_default_library", diff --git a/interpreter/activation.go b/interpreter/activation.go index bc9296ed4..6d4bae3b7 100644 --- a/interpreter/activation.go +++ b/interpreter/activation.go @@ -18,7 +18,7 @@ import ( "errors" "fmt" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/ref" ) // Activation used to resolve identifiers by name and references by id. diff --git a/interpreter/activation_test.go b/interpreter/activation_test.go index b0fed2102..28aa3a857 100644 --- a/interpreter/activation_test.go +++ b/interpreter/activation_test.go @@ -18,8 +18,8 @@ import ( "testing" "time" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" ) func TestActivation(t *testing.T) { diff --git a/interpreter/async.go b/interpreter/async.go index 4e391196b..fff5da9a6 100644 --- a/interpreter/async.go +++ b/interpreter/async.go @@ -23,9 +23,9 @@ import ( "sync" "sync/atomic" - "github.com/google/cel-go/common/functions" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/functions" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" ) // Async extension function support. diff --git a/interpreter/async_test.go b/interpreter/async_test.go index 242a93310..0f16d88e8 100644 --- a/interpreter/async_test.go +++ b/interpreter/async_test.go @@ -24,15 +24,15 @@ import ( "testing" "time" - "github.com/google/cel-go/checker" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/containers" - "github.com/google/cel-go/common/decls" - "github.com/google/cel-go/common/functions" - "github.com/google/cel-go/common/overloads" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/parser" + "github.com/authzed/cel-go/checker" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/containers" + "github.com/authzed/cel-go/common/decls" + "github.com/authzed/cel-go/common/functions" + "github.com/authzed/cel-go/common/overloads" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/parser" ) // asyncReturning returns an AsyncOp that immediately produces the given value, while counting the diff --git a/interpreter/attribute_patterns.go b/interpreter/attribute_patterns.go index bbaca5226..fa00e37ed 100644 --- a/interpreter/attribute_patterns.go +++ b/interpreter/attribute_patterns.go @@ -18,9 +18,9 @@ import ( "fmt" "strings" - "github.com/google/cel-go/common/containers" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/containers" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" ) // AttributePattern represents a top-level variable with an optional set of qualifier patterns. diff --git a/interpreter/attribute_patterns_test.go b/interpreter/attribute_patterns_test.go index 9fbbc7d9d..0863589ed 100644 --- a/interpreter/attribute_patterns_test.go +++ b/interpreter/attribute_patterns_test.go @@ -18,8 +18,8 @@ import ( "fmt" "testing" - "github.com/google/cel-go/common/containers" - "github.com/google/cel-go/common/types" + "github.com/authzed/cel-go/common/containers" + "github.com/authzed/cel-go/common/types" ) // attr describes a simplified format for specifying common Attribute and Qualifier values for diff --git a/interpreter/attributes.go b/interpreter/attributes.go index 26d8eb0f3..721a1df05 100644 --- a/interpreter/attributes.go +++ b/interpreter/attributes.go @@ -18,10 +18,10 @@ import ( "fmt" "strings" - "github.com/google/cel-go/common/containers" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" + "github.com/authzed/cel-go/common/containers" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" ) // AttributeFactory provides methods creating Attribute and Qualifier values. diff --git a/interpreter/attributes_test.go b/interpreter/attributes_test.go index 1dea98d9a..7e8cd5d3c 100644 --- a/interpreter/attributes_test.go +++ b/interpreter/attributes_test.go @@ -20,19 +20,19 @@ import ( "reflect" "testing" - "github.com/google/cel-go/checker" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/containers" - "github.com/google/cel-go/common/decls" - "github.com/google/cel-go/common/stdlib" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/parser" + "github.com/authzed/cel-go/checker" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/containers" + "github.com/authzed/cel-go/common/decls" + "github.com/authzed/cel-go/common/stdlib" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/parser" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" anypb "google.golang.org/protobuf/types/known/anypb" - proto3pb "github.com/google/cel-go/test/proto3pb" + proto3pb "github.com/authzed/cel-go/test/proto3pb" ) func TestAttributesAbsoluteAttr(t *testing.T) { diff --git a/interpreter/decorators.go b/interpreter/decorators.go index 9c973664a..9e55f05f0 100644 --- a/interpreter/decorators.go +++ b/interpreter/decorators.go @@ -15,10 +15,10 @@ package interpreter import ( - "github.com/google/cel-go/common/overloads" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" + "github.com/authzed/cel-go/common/overloads" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" ) // InterpretableDecorator is a functional interface for decorating or replacing diff --git a/interpreter/dispatcher.go b/interpreter/dispatcher.go index 8f0bdb7b8..b2a1eca89 100644 --- a/interpreter/dispatcher.go +++ b/interpreter/dispatcher.go @@ -17,7 +17,7 @@ package interpreter import ( "fmt" - "github.com/google/cel-go/common/functions" + "github.com/authzed/cel-go/common/functions" ) // Dispatcher resolves function calls to their appropriate overload. diff --git a/interpreter/evalstate.go b/interpreter/evalstate.go index 4bdd1fdc7..d0b8094e2 100644 --- a/interpreter/evalstate.go +++ b/interpreter/evalstate.go @@ -15,7 +15,7 @@ package interpreter import ( - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/ref" ) // EvalState tracks the values associated with expression ids during execution. diff --git a/interpreter/frame.go b/interpreter/frame.go index 20ab313c8..a5b0c526c 100644 --- a/interpreter/frame.go +++ b/interpreter/frame.go @@ -21,9 +21,9 @@ import ( "sync" "sync/atomic" - "github.com/google/cel-go/common/functions" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/functions" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" ) // evalContext contains the stateful information needed for a single evaluation. diff --git a/interpreter/frame_test.go b/interpreter/frame_test.go index fb9d629cc..fe4daf7b9 100644 --- a/interpreter/frame_test.go +++ b/interpreter/frame_test.go @@ -18,8 +18,8 @@ import ( "context" "testing" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" ) func TestFrameCheckInterrupt(t *testing.T) { diff --git a/interpreter/functions/BUILD.bazel b/interpreter/functions/BUILD.bazel index 4a80c3ea0..0393b9251 100644 --- a/interpreter/functions/BUILD.bazel +++ b/interpreter/functions/BUILD.bazel @@ -10,7 +10,7 @@ go_library( srcs = [ "functions.go", ], - importpath = "github.com/google/cel-go/interpreter/functions", + importpath = "github.com/authzed/cel-go/interpreter/functions", deps = [ "//common/functions:go_default_library", ], diff --git a/interpreter/functions/functions.go b/interpreter/functions/functions.go index 21ffb6924..331f39e9f 100644 --- a/interpreter/functions/functions.go +++ b/interpreter/functions/functions.go @@ -16,7 +16,7 @@ // interpreter and as declared within the checker#StandardDeclarations. package functions -import fn "github.com/google/cel-go/common/functions" +import fn "github.com/authzed/cel-go/common/functions" // Overload defines a named overload of a function, indicating an operand trait // which must be present on the first argument to the overload as well as one diff --git a/interpreter/interpretable.go b/interpreter/interpretable.go index 906c4f805..7e92984b5 100644 --- a/interpreter/interpretable.go +++ b/interpreter/interpretable.go @@ -18,12 +18,12 @@ import ( "fmt" "sync" - "github.com/google/cel-go/common/functions" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/overloads" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" + "github.com/authzed/cel-go/common/functions" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/overloads" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" ) // Interpretable evaluates an Activation and produces a value. diff --git a/interpreter/interpreter.go b/interpreter/interpreter.go index ef13ab922..92aa9d0cd 100644 --- a/interpreter/interpreter.go +++ b/interpreter/interpreter.go @@ -20,10 +20,10 @@ package interpreter import ( "errors" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/containers" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/containers" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" ) // PlannerOption configures the program plan options during interpretable setup. diff --git a/interpreter/interpreter_test.go b/interpreter/interpreter_test.go index bcb0f5758..90e95f0f1 100644 --- a/interpreter/interpreter_test.go +++ b/interpreter/interpreter_test.go @@ -25,26 +25,26 @@ import ( "testing" "time" - "github.com/google/cel-go/checker" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/containers" - "github.com/google/cel-go/common/decls" - "github.com/google/cel-go/common/functions" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/stdlib" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" - "github.com/google/cel-go/parser" + "github.com/authzed/cel-go/checker" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/containers" + "github.com/authzed/cel-go/common/decls" + "github.com/authzed/cel-go/common/functions" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/stdlib" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" + "github.com/authzed/cel-go/parser" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" structpb "google.golang.org/protobuf/types/known/structpb" tpb "google.golang.org/protobuf/types/known/timestamppb" wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" - proto2pb "github.com/google/cel-go/test/proto2pb" - proto3pb "github.com/google/cel-go/test/proto3pb" + proto2pb "github.com/authzed/cel-go/test/proto2pb" + proto3pb "github.com/authzed/cel-go/test/proto3pb" ) type testCase struct { diff --git a/interpreter/optimizations.go b/interpreter/optimizations.go index 2fc87e693..5a90513b6 100644 --- a/interpreter/optimizations.go +++ b/interpreter/optimizations.go @@ -17,8 +17,8 @@ package interpreter import ( "regexp" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" ) // MatchesRegexOptimization optimizes the 'matches' standard library function by compiling the regex pattern and diff --git a/interpreter/planner.go b/interpreter/planner.go index 396a9803f..d9ccad4a3 100644 --- a/interpreter/planner.go +++ b/interpreter/planner.go @@ -18,11 +18,11 @@ import ( "fmt" "strings" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/containers" - "github.com/google/cel-go/common/functions" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/types" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/containers" + "github.com/authzed/cel-go/common/functions" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/types" ) // newPlanner creates an interpretablePlanner which references a Dispatcher, TypeProvider, diff --git a/interpreter/prune.go b/interpreter/prune.go index 1662c1c1b..ea659757b 100644 --- a/interpreter/prune.go +++ b/interpreter/prune.go @@ -15,12 +15,12 @@ package interpreter import ( - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/overloads" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/overloads" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" ) type astPruner struct { diff --git a/interpreter/prune_test.go b/interpreter/prune_test.go index 3d12abc5a..ad6f3954a 100644 --- a/interpreter/prune_test.go +++ b/interpreter/prune_test.go @@ -17,17 +17,17 @@ package interpreter import ( "testing" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/containers" - "github.com/google/cel-go/common/decls" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" - "github.com/google/cel-go/parser" - "github.com/google/cel-go/test" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/containers" + "github.com/authzed/cel-go/common/decls" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" + "github.com/authzed/cel-go/parser" + "github.com/authzed/cel-go/test" - proto3pb "github.com/google/cel-go/test/proto3pb" + proto3pb "github.com/authzed/cel-go/test/proto3pb" ) type testInfo struct { diff --git a/interpreter/runtimecost.go b/interpreter/runtimecost.go index 81e4ef63c..e9a7b4a70 100644 --- a/interpreter/runtimecost.go +++ b/interpreter/runtimecost.go @@ -18,11 +18,11 @@ import ( "errors" "math" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/overloads" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/common/types/traits" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/overloads" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types/traits" ) // WARNING: Any changes to cost calculations in this file require a corresponding change in checker/cost.go diff --git a/interpreter/runtimecost_test.go b/interpreter/runtimecost_test.go index 597d73ef9..a672e1e20 100644 --- a/interpreter/runtimecost_test.go +++ b/interpreter/runtimecost_test.go @@ -23,16 +23,16 @@ import ( "testing" "time" - "github.com/google/cel-go/checker" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/containers" - "github.com/google/cel-go/common/decls" - "github.com/google/cel-go/common/overloads" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/parser" + "github.com/authzed/cel-go/checker" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/containers" + "github.com/authzed/cel-go/common/decls" + "github.com/authzed/cel-go/common/overloads" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/parser" - proto3pb "github.com/google/cel-go/test/proto3pb" + proto3pb "github.com/authzed/cel-go/test/proto3pb" ) func TestTrackCostAdvanced(t *testing.T) { diff --git a/parser/BUILD.bazel b/parser/BUILD.bazel index 97bc9bd43..5726d2b5e 100644 --- a/parser/BUILD.bazel +++ b/parser/BUILD.bazel @@ -16,7 +16,7 @@ go_library( "unescape.go", "unparser.go", ], - importpath = "github.com/google/cel-go/parser", + importpath = "github.com/authzed/cel-go/parser", visibility = ["//visibility:public"], deps = [ "//common:go_default_library", diff --git a/parser/errors.go b/parser/errors.go index c3cec01a8..013714a31 100644 --- a/parser/errors.go +++ b/parser/errors.go @@ -15,7 +15,7 @@ package parser import ( - "github.com/google/cel-go/common" + "github.com/authzed/cel-go/common" ) // parseErrors is a specialization of Errors. diff --git a/parser/gen/BUILD.bazel b/parser/gen/BUILD.bazel index 3efed87b7..e7f9d9fc4 100644 --- a/parser/gen/BUILD.bazel +++ b/parser/gen/BUILD.bazel @@ -19,7 +19,7 @@ go_library( "CEL.tokens", "CELLexer.tokens", ], - importpath = "github.com/google/cel-go/parser/gen", + importpath = "github.com/authzed/cel-go/parser/gen", deps = [ "@com_github_antlr4_go_antlr_v4//:go_default_library", ], diff --git a/parser/helper.go b/parser/helper.go index 84bef80d5..bb2efed7a 100644 --- a/parser/helper.go +++ b/parser/helper.go @@ -19,10 +19,10 @@ import ( antlr "github.com/antlr4-go/antlr/v4" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" ) type parserHelper struct { diff --git a/parser/helper_test.go b/parser/helper_test.go index d6602bc7b..c7f983f34 100644 --- a/parser/helper_test.go +++ b/parser/helper_test.go @@ -17,8 +17,8 @@ package parser import ( "testing" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/ast" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/ast" "google.golang.org/protobuf/proto" ) diff --git a/parser/input.go b/parser/input.go index 44792455d..f9349a1e4 100644 --- a/parser/input.go +++ b/parser/input.go @@ -17,7 +17,7 @@ package parser import ( antlr "github.com/antlr4-go/antlr/v4" - "github.com/google/cel-go/common/runes" + "github.com/authzed/cel-go/common/runes" ) type charStream struct { diff --git a/parser/macro.go b/parser/macro.go index 1ef43c4b5..3e1b5775b 100644 --- a/parser/macro.go +++ b/parser/macro.go @@ -17,11 +17,11 @@ package parser import ( "fmt" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" ) // MacroOpt defines a functional option for configuring macro behavior. diff --git a/parser/macro_test.go b/parser/macro_test.go index 1d056f644..5c6c17e74 100644 --- a/parser/macro_test.go +++ b/parser/macro_test.go @@ -17,8 +17,8 @@ package parser import ( "testing" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/ast" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/ast" ) func TestReceiverVarArgMacro(t *testing.T) { diff --git a/parser/parser.go b/parser/parser.go index 338233543..2fb7fbadf 100644 --- a/parser/parser.go +++ b/parser/parser.go @@ -25,12 +25,12 @@ import ( antlr "github.com/antlr4-go/antlr/v4" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/runes" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/parser/gen" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/runes" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/parser/gen" ) // Parser encapsulates the context necessary to perform parsing for different expressions. diff --git a/parser/parser_test.go b/parser/parser_test.go index 88527d813..56c1fb36f 100644 --- a/parser/parser_test.go +++ b/parser/parser_test.go @@ -21,11 +21,11 @@ import ( "strings" "testing" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/debug" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/test" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/debug" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/test" ) var testCases = []testInfo{ diff --git a/parser/unparser.go b/parser/unparser.go index d503a450e..6722601c3 100644 --- a/parser/unparser.go +++ b/parser/unparser.go @@ -21,10 +21,10 @@ import ( "strconv" "strings" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" ) // Unparse takes an input expression and source position information and generates a human-readable diff --git a/parser/unparser_test.go b/parser/unparser_test.go index 7862e5ca0..8eab160dc 100644 --- a/parser/unparser_test.go +++ b/parser/unparser_test.go @@ -19,9 +19,9 @@ import ( "strings" "testing" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/operators" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/operators" "google.golang.org/protobuf/proto" diff --git a/policy/BUILD.bazel b/policy/BUILD.bazel index d443c6d7c..1f273238d 100644 --- a/policy/BUILD.bazel +++ b/policy/BUILD.bazel @@ -37,7 +37,7 @@ go_library( "test_tag_handler_k8s.go", "yaml.go", ], - importpath = "github.com/google/cel-go/policy", + importpath = "github.com/authzed/cel-go/policy", deps = [ "//cel:go_default_library", "//common:go_default_library", diff --git a/policy/compiler.go b/policy/compiler.go index 2ca84e0a2..5d7507ac6 100644 --- a/policy/compiler.go +++ b/policy/compiler.go @@ -19,13 +19,13 @@ package policy import ( "fmt" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/containers" - "github.com/google/cel-go/common/decls" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/containers" + "github.com/authzed/cel-go/common/decls" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" ) // CompiledRule represents the variables and match blocks associated with a rule block. diff --git a/policy/compiler_test.go b/policy/compiler_test.go index 6f9bc4f3b..fdb29aedc 100644 --- a/policy/compiler_test.go +++ b/policy/compiler_test.go @@ -23,11 +23,11 @@ import ( "google.golang.org/protobuf/encoding/prototext" "google.golang.org/protobuf/proto" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/ext" - "github.com/google/cel-go/interpreter" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/ext" + "github.com/authzed/cel-go/interpreter" "github.com/google/go-cmp/cmp" ) diff --git a/policy/composer.go b/policy/composer.go index ef392184f..5e993957f 100644 --- a/policy/composer.go +++ b/policy/composer.go @@ -20,11 +20,11 @@ import ( "slices" "strings" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/types" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/types" ) // ComposerOption is a functional option used to configure a RuleComposer diff --git a/policy/composer_test.go b/policy/composer_test.go index 5cd601c2c..8a158fdf2 100644 --- a/policy/composer_test.go +++ b/policy/composer_test.go @@ -4,10 +4,10 @@ import ( "strings" "testing" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/debug" - "github.com/google/cel-go/ext" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/debug" + "github.com/authzed/cel-go/ext" ) func TestCompose_SourceInfo(t *testing.T) { diff --git a/policy/config.go b/policy/config.go index 02243922b..43f466aa5 100644 --- a/policy/config.go +++ b/policy/config.go @@ -15,9 +15,9 @@ package policy import ( - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/env" - "github.com/google/cel-go/ext" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/env" + "github.com/authzed/cel-go/ext" ) // FromConfig configures a CEL policy environment from a config file. diff --git a/policy/config_test.go b/policy/config_test.go index 77fcce274..40bce9775 100644 --- a/policy/config_test.go +++ b/policy/config_test.go @@ -17,12 +17,12 @@ package policy import ( "testing" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/env" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/env" "go.yaml.in/yaml/v3" - proto3pb "github.com/google/cel-go/test/proto3pb" + proto3pb "github.com/authzed/cel-go/test/proto3pb" ) func TestConfig(t *testing.T) { diff --git a/policy/go.mod b/policy/go.mod index 6fe07141a..68c9404da 100644 --- a/policy/go.mod +++ b/policy/go.mod @@ -1,10 +1,10 @@ -module github.com/google/cel-go/policy +module github.com/authzed/cel-go/policy go 1.23.0 require ( - github.com/google/cel-go v0.26.1 - github.com/google/cel-go/tools v0.0.0-20251023215754-a36d461be521 + github.com/authzed/cel-go v0.26.1 + github.com/authzed/cel-go/tools v0.0.0-20251023215754-a36d461be521 github.com/google/go-cmp v0.7.0 go.yaml.in/yaml/v3 v3.0.4 google.golang.org/protobuf v1.36.10 @@ -19,6 +19,6 @@ require ( google.golang.org/genproto/googleapis/rpc v0.0.0-20250311190419-81fb87f6b8bf // indirect ) -replace github.com/google/cel-go => ../. +replace github.com/authzed/cel-go => ../. -replace github.com/google/cel-go/tools => ../tools/. +replace github.com/authzed/cel-go/tools => ../tools/. diff --git a/policy/helper_test.go b/policy/helper_test.go index fbb62b55a..5c815d0ae 100644 --- a/policy/helper_test.go +++ b/policy/helper_test.go @@ -19,11 +19,11 @@ import ( "os" "testing" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/env" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/test" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/env" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/test" "go.yaml.in/yaml/v3" diff --git a/policy/parser.go b/policy/parser.go index a42c7a3b9..7682ddafe 100644 --- a/policy/parser.go +++ b/policy/parser.go @@ -20,9 +20,9 @@ import ( "go.yaml.in/yaml/v3" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/ast" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/ast" ) type semanticType int diff --git a/policy/parser_test.go b/policy/parser_test.go index f407a8600..804df04f5 100644 --- a/policy/parser_test.go +++ b/policy/parser_test.go @@ -18,9 +18,9 @@ import ( "fmt" "testing" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/ext" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/ext" "github.com/google/go-cmp/cmp" "go.yaml.in/yaml/v3" ) diff --git a/policy/source.go b/policy/source.go index 41abd19bd..c11ddb2a8 100644 --- a/policy/source.go +++ b/policy/source.go @@ -15,7 +15,7 @@ package policy import ( - "github.com/google/cel-go/common" + "github.com/authzed/cel-go/common" ) // ByteSource converts a byte sequence and location description to a model.Source. diff --git a/policy/test/cel_test_runner.go b/policy/test/cel_test_runner.go index 95269e13c..a653a08a1 100644 --- a/policy/test/cel_test_runner.go +++ b/policy/test/cel_test_runner.go @@ -18,10 +18,10 @@ import ( "os" "testing" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/tools/celtest" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/tools/celtest" ) // TestCEL triggers the celtest test runner with a list of custom options which are used to set up diff --git a/policy/test/k8s_cel_test_runner.go b/policy/test/k8s_cel_test_runner.go index 26e6ad114..3829246e2 100644 --- a/policy/test/k8s_cel_test_runner.go +++ b/policy/test/k8s_cel_test_runner.go @@ -18,8 +18,8 @@ import ( "os" "testing" - "github.com/google/cel-go/policy" - "github.com/google/cel-go/tools/celtest" + "github.com/authzed/cel-go/policy" + "github.com/authzed/cel-go/tools/celtest" ) // TestK8sCEL triggers compilation and test execution of a k8s policy which diff --git a/repl/BUILD.bazel b/repl/BUILD.bazel index 2f6e627ea..efa0f6f60 100644 --- a/repl/BUILD.bazel +++ b/repl/BUILD.bazel @@ -26,7 +26,7 @@ go_library( "evaluator.go", "typefmt.go", ], - importpath = "github.com/google/cel-go/repl", + importpath = "github.com/authzed/cel-go/repl", deps = [ "//cel:go_default_library", "//checker:go_default_library", diff --git a/repl/commands.go b/repl/commands.go index bad89eb7c..0ef82da33 100644 --- a/repl/commands.go +++ b/repl/commands.go @@ -21,8 +21,8 @@ import ( antlr "github.com/antlr4-go/antlr/v4" - "github.com/google/cel-go/common/env" - "github.com/google/cel-go/repl/parser" + "github.com/authzed/cel-go/common/env" + "github.com/authzed/cel-go/repl/parser" ) var ( diff --git a/repl/evaluator.go b/repl/evaluator.go index ecfd72264..ff0b9cdff 100644 --- a/repl/evaluator.go +++ b/repl/evaluator.go @@ -23,14 +23,14 @@ import ( "sort" "strings" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/decls" - "github.com/google/cel-go/common/env" - envlib "github.com/google/cel-go/common/env" - "github.com/google/cel-go/common/functions" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/ext" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/decls" + "github.com/authzed/cel-go/common/env" + envlib "github.com/authzed/cel-go/common/env" + "github.com/authzed/cel-go/common/functions" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/ext" "google.golang.org/protobuf/encoding/prototext" "google.golang.org/protobuf/proto" diff --git a/repl/evaluator_test.go b/repl/evaluator_test.go index d18f015e2..55ad190b5 100644 --- a/repl/evaluator_test.go +++ b/repl/evaluator_test.go @@ -18,11 +18,11 @@ import ( "strings" "testing" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/env" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/env" "github.com/google/go-cmp/cmp" - proto2pb "github.com/google/cel-go/test/proto2pb" + proto2pb "github.com/authzed/cel-go/test/proto2pb" ) var testTextDescriptorFile string = "testdata/attribute_context_fds.textproto" diff --git a/repl/go.mod b/repl/go.mod index 400aa810d..603668e29 100644 --- a/repl/go.mod +++ b/repl/go.mod @@ -1,4 +1,4 @@ -module github.com/google/cel-go/repl +module github.com/authzed/cel-go/repl go 1.23.0 @@ -6,7 +6,7 @@ require ( cel.dev/expr v0.25.1 github.com/antlr4-go/antlr/v4 v4.13.1 github.com/chzyer/readline v1.5.1 - github.com/google/cel-go v0.26.1 + github.com/authzed/cel-go v0.26.1 github.com/google/go-cmp v0.7.0 go.yaml.in/yaml/v3 v3.0.4 google.golang.org/genproto/googleapis/api v0.0.0-20240826202546-f6391c0de4c7 @@ -20,6 +20,6 @@ require ( golang.org/x/text v0.22.0 // indirect ) -replace github.com/google/cel-go => ../. +replace github.com/authzed/cel-go => ../. replace cel.dev/expr => ../../cel-spec diff --git a/repl/main/BUILD.bazel b/repl/main/BUILD.bazel index 8b935c48c..52cfbabb0 100644 --- a/repl/main/BUILD.bazel +++ b/repl/main/BUILD.bazel @@ -21,14 +21,14 @@ package( go_binary( name = "main", embed = [":go_default_library"], - importpath = "github.com/google/cel-go/repl/main", + importpath = "github.com/authzed/cel-go/repl/main", visibility = ["//visibility:public"], ) go_library( name = "go_default_library", srcs = ["main.go"], - importpath = "github.com/google/cel-go/repl/main", + importpath = "github.com/authzed/cel-go/repl/main", visibility = ["//visibility:private"], deps = [ "//repl:go_default_library", diff --git a/repl/main/main.go b/repl/main/main.go index bfc00242f..277a880a2 100644 --- a/repl/main/main.go +++ b/repl/main/main.go @@ -45,7 +45,7 @@ import ( "os" "path/filepath" - "github.com/google/cel-go/repl" + "github.com/authzed/cel-go/repl" "github.com/chzyer/readline" ) diff --git a/repl/parser/BUILD.bazel b/repl/parser/BUILD.bazel index 4d6f12cb2..b0e932e5f 100644 --- a/repl/parser/BUILD.bazel +++ b/repl/parser/BUILD.bazel @@ -23,7 +23,7 @@ go_library( name = "go_default_library", srcs = glob(["*.go"], exclude=["*_test.go"]), data = glob(["*.tokens"]), - importpath = "github.com/google/cel-go/repl/parser", + importpath = "github.com/authzed/cel-go/repl/parser", deps = [ "@com_github_antlr4_go_antlr_v4//:go_default_library", ], diff --git a/repl/typefmt.go b/repl/typefmt.go index a877f57d0..9fb760d8a 100644 --- a/repl/typefmt.go +++ b/repl/typefmt.go @@ -20,10 +20,10 @@ import ( antlr "github.com/antlr4-go/antlr/v4" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/env" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/repl/parser" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/env" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/repl/parser" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" ) diff --git a/repl/typefmt_test.go b/repl/typefmt_test.go index a9c9df9ec..55580235d 100644 --- a/repl/typefmt_test.go +++ b/repl/typefmt_test.go @@ -17,7 +17,7 @@ package repl import ( "testing" - "github.com/google/cel-go/cel" + "github.com/authzed/cel-go/cel" exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1" ) diff --git a/test/BUILD.bazel b/test/BUILD.bazel index 597010414..3ae35ea31 100644 --- a/test/BUILD.bazel +++ b/test/BUILD.bazel @@ -23,7 +23,7 @@ go_library( "expr.go", "suite.go", ], - importpath = "github.com/google/cel-go/test", + importpath = "github.com/authzed/cel-go/test", deps = [ "//common/operators:go_default_library", "//common/types:go_default_library", diff --git a/test/async.go b/test/async.go index c550e940c..7f08d5c21 100644 --- a/test/async.go +++ b/test/async.go @@ -18,8 +18,8 @@ import ( "context" "time" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" ) // FakeRPC returns a blocking async function which simulates an RPC that succeeds after a short diff --git a/test/bench/BUILD.bazel b/test/bench/BUILD.bazel index 5f856dc74..7091227db 100644 --- a/test/bench/BUILD.bazel +++ b/test/bench/BUILD.bazel @@ -9,7 +9,7 @@ go_library( srcs = [ "bench.go", ], - importpath = "github.com/google/cel-go/test/bench", + importpath = "github.com/authzed/cel-go/test/bench", deps = [ "//cel:go_default_library", "//ext:go_default_library", diff --git a/test/bench/bench.go b/test/bench/bench.go index 6725faaf7..cd7992f36 100644 --- a/test/bench/bench.go +++ b/test/bench/bench.go @@ -19,10 +19,10 @@ import ( "fmt" "testing" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/ext" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/ext" ) // Case represents a human-readable expression and an expected output given an input diff --git a/test/bench/bench_test.go b/test/bench/bench_test.go index 4cfc1e85c..b1834ebf1 100644 --- a/test/bench/bench_test.go +++ b/test/bench/bench_test.go @@ -17,7 +17,7 @@ package bench import ( "testing" - "github.com/google/cel-go/cel" + "github.com/authzed/cel-go/cel" ) func BenchmarkReferenceCases(b *testing.B) { diff --git a/test/expr.go b/test/expr.go index 39adcee60..548c8b943 100644 --- a/test/expr.go +++ b/test/expr.go @@ -15,7 +15,7 @@ package test import ( - "github.com/google/cel-go/common/operators" + "github.com/authzed/cel-go/common/operators" "google.golang.org/protobuf/proto" diff --git a/test/proto2pb/BUILD.bazel b/test/proto2pb/BUILD.bazel index c7233c8f1..4bd712d99 100644 --- a/test/proto2pb/BUILD.bazel +++ b/test/proto2pb/BUILD.bazel @@ -23,7 +23,7 @@ go_library( "test_all_types.pb.go", "test_extensions.pb.go", ], - importpath = "github.com/google/cel-go/test/proto2pb", + importpath = "github.com/authzed/cel-go/test/proto2pb", deps = [ "@org_golang_google_protobuf//proto:go_default_library", "@org_golang_google_protobuf//reflect/protoreflect:go_default_library", @@ -59,7 +59,7 @@ proto_library( go_proto_library( name = "test_all_types_go_proto", - importpath = "github.com/google/cel-go/test/proto2pb", + importpath = "github.com/authzed/cel-go/test/proto2pb", protos = [ ":test_all_types_proto", ":test_extensions_proto", diff --git a/test/proto2pb/test_all_types.proto b/test/proto2pb/test_all_types.proto index a77cc6d8b..4e72647bb 100644 --- a/test/proto2pb/test_all_types.proto +++ b/test/proto2pb/test_all_types.proto @@ -3,7 +3,7 @@ syntax = "proto2"; package google.expr.proto2.test; -option go_package = "github.com/google/cel-go/test/proto2pb"; +option go_package = "github.com/authzed/cel-go/test/proto2pb"; import "google/protobuf/any.proto"; import "google/protobuf/duration.proto"; diff --git a/test/proto2pb/test_extensions.proto b/test/proto2pb/test_extensions.proto index f98ca34a4..3e2e5ca77 100644 --- a/test/proto2pb/test_extensions.proto +++ b/test/proto2pb/test_extensions.proto @@ -2,7 +2,7 @@ syntax = "proto2"; package google.expr.proto2.test; -option go_package = "github.com/google/cel-go/test/proto2pb"; +option go_package = "github.com/authzed/cel-go/test/proto2pb"; import "google/protobuf/wrappers.proto"; import "test/proto2pb/test_all_types.proto"; diff --git a/test/proto3pb/BUILD.bazel b/test/proto3pb/BUILD.bazel index 7b3449686..b33ceed4d 100644 --- a/test/proto3pb/BUILD.bazel +++ b/test/proto3pb/BUILD.bazel @@ -24,7 +24,7 @@ go_library( "test_all_types.pb.go", "test_import.pb.go", ], - importpath = "github.com/google/cel-go/test/proto3pb", + importpath = "github.com/authzed/cel-go/test/proto3pb", deps = [ "@org_golang_google_protobuf//proto:go_default_library", "@org_golang_google_protobuf//types/known/anypb:go_default_library", @@ -57,7 +57,7 @@ proto_library( go_proto_library( name = "test_all_types_go_proto", - importpath = "github.com/google/cel-go/test/proto3pb", + importpath = "github.com/authzed/cel-go/test/proto3pb", protos = [ ":test_all_types_proto", ":test_import_proto", diff --git a/test/proto3pb/test_all_types.proto b/test/proto3pb/test_all_types.proto index f6e8f2c1e..cef88cda9 100644 --- a/test/proto3pb/test_all_types.proto +++ b/test/proto3pb/test_all_types.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package google.expr.proto3.test; -option go_package = "github.com/google/cel-go/test/proto3pb"; +option go_package = "github.com/authzed/cel-go/test/proto3pb"; import "google/protobuf/any.proto"; import "google/protobuf/duration.proto"; diff --git a/test/proto3pb/test_import.proto b/test/proto3pb/test_import.proto index f508fc5d0..31203de19 100644 --- a/test/proto3pb/test_import.proto +++ b/test/proto3pb/test_import.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package google.expr.proto3.test; -option go_package = "github.com/google/cel-go/test/proto3pb"; +option go_package = "github.com/authzed/cel-go/test/proto3pb"; enum ImportedGlobalEnum { IMPORT_FOO = 0; diff --git a/tools/celtest/BUILD.bazel b/tools/celtest/BUILD.bazel index 8d5fd5a99..271c49821 100644 --- a/tools/celtest/BUILD.bazel +++ b/tools/celtest/BUILD.bazel @@ -26,7 +26,7 @@ go_library( "test_coverage_reporter.go", "test_runner.go", ], - importpath = "github.com/google/cel-go/tools/celtest", + importpath = "github.com/authzed/cel-go/tools/celtest", deps = [ "//cel:go_default_library", "//common/ast:go_default_library", diff --git a/tools/celtest/test_coverage_reporter.go b/tools/celtest/test_coverage_reporter.go index 1147e84c6..ff2229ca2 100644 --- a/tools/celtest/test_coverage_reporter.go +++ b/tools/celtest/test_coverage_reporter.go @@ -20,9 +20,9 @@ import ( "strings" "testing" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/parser" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/parser" ) // reportCoverage reports the coverage information for the provided programs. diff --git a/tools/celtest/test_coverage_reporter_test.go b/tools/celtest/test_coverage_reporter_test.go index ae7b0c701..3cbac23ea 100644 --- a/tools/celtest/test_coverage_reporter_test.go +++ b/tools/celtest/test_coverage_reporter_test.go @@ -18,9 +18,9 @@ package celtest import ( "testing" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/tools/compiler" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/tools/compiler" ) func TestCoverageStats(t *testing.T) { diff --git a/tools/celtest/test_runner.go b/tools/celtest/test_runner.go index 5f1e997d6..202205367 100644 --- a/tools/celtest/test_runner.go +++ b/tools/celtest/test_runner.go @@ -25,16 +25,16 @@ import ( "strings" "testing" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/ast" - "github.com/google/cel-go/common/debug" - "github.com/google/cel-go/common/env" - "github.com/google/cel-go/common/operators" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/interpreter" - "github.com/google/cel-go/test" - "github.com/google/cel-go/tools/compiler" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/ast" + "github.com/authzed/cel-go/common/debug" + "github.com/authzed/cel-go/common/env" + "github.com/authzed/cel-go/common/operators" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/interpreter" + "github.com/authzed/cel-go/test" + "github.com/authzed/cel-go/tools/compiler" "github.com/google/go-cmp/cmp" "google.golang.org/protobuf/encoding/prototext" diff --git a/tools/celtest/test_runner_test.go b/tools/celtest/test_runner_test.go index deb6699a7..3b788eb68 100644 --- a/tools/celtest/test_runner_test.go +++ b/tools/celtest/test_runner_test.go @@ -18,13 +18,13 @@ package celtest import ( "testing" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/decls" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/common/types/ref" - "github.com/google/cel-go/policy" - "github.com/google/cel-go/test" - "github.com/google/cel-go/tools/compiler" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/decls" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/common/types/ref" + "github.com/authzed/cel-go/policy" + "github.com/authzed/cel-go/test" + "github.com/authzed/cel-go/tools/compiler" "go.yaml.in/yaml/v3" diff --git a/tools/compiler/BUILD.bazel b/tools/compiler/BUILD.bazel index de7d0cc6e..6e16f3ca0 100644 --- a/tools/compiler/BUILD.bazel +++ b/tools/compiler/BUILD.bazel @@ -24,7 +24,7 @@ go_library( srcs = [ "compiler.go", ], - importpath = "github.com/google/cel-go/tools/compiler", + importpath = "github.com/authzed/cel-go/tools/compiler", deps = [ "//cel:go_default_library", "//common:go_default_library", diff --git a/tools/compiler/compiler.go b/tools/compiler/compiler.go index 4d4f69709..84c3110b6 100644 --- a/tools/compiler/compiler.go +++ b/tools/compiler/compiler.go @@ -24,12 +24,12 @@ import ( "go.yaml.in/yaml/v3" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common" - "github.com/google/cel-go/common/env" - "github.com/google/cel-go/common/types" - "github.com/google/cel-go/ext" - "github.com/google/cel-go/policy" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common" + "github.com/authzed/cel-go/common/env" + "github.com/authzed/cel-go/common/types" + "github.com/authzed/cel-go/ext" + "github.com/authzed/cel-go/policy" "google.golang.org/protobuf/encoding/prototext" "google.golang.org/protobuf/proto" "google.golang.org/protobuf/reflect/protoreflect" diff --git a/tools/compiler/compiler_test.go b/tools/compiler/compiler_test.go index d528eed56..e9be8e5b3 100644 --- a/tools/compiler/compiler_test.go +++ b/tools/compiler/compiler_test.go @@ -18,10 +18,10 @@ import ( "reflect" "testing" - "github.com/google/cel-go/cel" - "github.com/google/cel-go/common/env" - "github.com/google/cel-go/ext" - "github.com/google/cel-go/policy" + "github.com/authzed/cel-go/cel" + "github.com/authzed/cel-go/common/env" + "github.com/authzed/cel-go/ext" + "github.com/authzed/cel-go/policy" celpb "cel.dev/expr" configpb "cel.dev/expr/conformance" diff --git a/tools/go.mod b/tools/go.mod index dc978e3aa..6f8ea594f 100644 --- a/tools/go.mod +++ b/tools/go.mod @@ -1,11 +1,11 @@ -module github.com/google/cel-go/tools +module github.com/authzed/cel-go/tools go 1.23.0 require ( cel.dev/expr v0.25.1 - github.com/google/cel-go v0.22.0 - github.com/google/cel-go/policy v0.0.0-20250311174852-f5ea07b389a1 + github.com/authzed/cel-go v0.22.0 + github.com/authzed/cel-go/policy v0.0.0-20250311174852-f5ea07b389a1 github.com/google/go-cmp v0.7.0 go.yaml.in/yaml/v3 v3.0.4 google.golang.org/genproto/googleapis/api v0.0.0-20250311190419-81fb87f6b8bf @@ -21,4 +21,4 @@ require ( gopkg.in/yaml.v3 v3.0.1 // indirect ) -replace github.com/google/cel-go => ../. +replace github.com/authzed/cel-go => ../. diff --git a/tools/go.sum b/tools/go.sum index 2d091fe5a..a6b85e3cc 100644 --- a/tools/go.sum +++ b/tools/go.sum @@ -5,8 +5,8 @@ github.com/antlr4-go/antlr/v4 v4.13.1/go.mod h1:GKmUxMtwp6ZgGwZSva4eWPC5mS6vUAmO github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/google/cel-go/policy v0.0.0-20250311174852-f5ea07b389a1 h1:jT/04RYwo++S9tvHggXWuAqvnc2Pi0BTHYsZYVOoMOs= -github.com/google/cel-go/policy v0.0.0-20250311174852-f5ea07b389a1/go.mod h1:dgvqy3CzFx17CBMkL0s1hd0r1+rEQOo85tDpr0g6Dp4= +github.com/authzed/cel-go/policy v0.0.0-20250311174852-f5ea07b389a1 h1:jT/04RYwo++S9tvHggXWuAqvnc2Pi0BTHYsZYVOoMOs= +github.com/authzed/cel-go/policy v0.0.0-20250311174852-f5ea07b389a1/go.mod h1:dgvqy3CzFx17CBMkL0s1hd0r1+rEQOo85tDpr0g6Dp4= github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=