ByteAlex
09/03/2024, 4:04 PMplain
~ zed version
client: zed v0.21.0
service: v1.35.3
plain
~ zed validate schema.zaml
6:02PM ERR terminated with errors error="BUG: *errors.errorString unexpected set operation type *corev1.SetOperation_Child_FunctionedTupleToUserset\n/Users/runner/go/pkg/mod/github.com/authzed/spicedb@v1.35.2-0.20240731085809-d52dfd0adbd0/pkg/spiceerrors/bug.go:33 (0x101609460)\n/Users/runner/go/pkg/mod/github.com/authzed/spicedb@v1.35.2-0.20240731085809-d52dfd0adbd0/pkg/development/warnings.go:221 (0x101ab1900)\n/Users/runner/go/pkg/mod/github.com/authzed/spicedb@v1.35.2-0.20240731085809-d52dfd0adbd0/pkg/development/warnings.go:157 (0x101ab1488)\n/Users/runner/go/pkg/mod/github.com/authzed/spicedb@v1.35.2-0.20240731085809-d52dfd0adbd0/pkg/development/warnings.go:96 (0x101ab1088)\n/Users/runner/go/pkg/mod/github.com/authzed/spicedb@v1.35.2-0.20240731085809-d52dfd0adbd0/pkg/development/warnings.go:56 (0x101ab0dcc)\ninternal/cmd/validate.go:136 (0x101aecb6c)\n/Users/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:985 (0x1017826b0)\n/Users/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1117 (0x101782e74)\n/Users/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1041 (0x101ae6c94)\n/Users/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1034 (0x101ae6c8d)\ninternal/cmd/cmd.go:134 (0x101ae6c95)\ncmd/zed/main.go:6 (0x101aeef7c)\n$GOROOT/src/runtime/internal/atomic/types.go:194 (0x100e422ac)\n$GOROOT/src/runtime/asm_arm64.s:1222 (0x100e77644)\n"
The relevant (changed) part of the file is:
zaml
definition report {
relation rparent_unit: unit
// relation.all(permission) syntax requires v1.35.0 at least
permission view = rparent_unit.all(view_report)
permission edit = rparent_unit.all(edit_report)
}