Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion cel/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion cel/async/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 5 additions & 5 deletions cel/async/async.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 5 additions & 5 deletions cel/async/async_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down
6 changes: 3 additions & 3 deletions cel/cel_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
26 changes: 13 additions & 13 deletions cel/cel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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) {
Expand Down
10 changes: 5 additions & 5 deletions cel/decls.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
18 changes: 9 additions & 9 deletions cel/decls_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
26 changes: 13 additions & 13 deletions cel/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
16 changes: 8 additions & 8 deletions cel/env_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions cel/fieldpaths.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
12 changes: 6 additions & 6 deletions cel/folding.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
12 changes: 6 additions & 6 deletions cel/folding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
12 changes: 6 additions & 6 deletions cel/inlining.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions cel/inlining_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
12 changes: 6 additions & 6 deletions cel/io.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
12 changes: 6 additions & 6 deletions cel/io_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
24 changes: 12 additions & 12 deletions cel/library.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
Loading
Loading