Update expr from 1.13.0 to 1.15.3 (#6375)

Manually update expr to resolve test failures

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
Yong Tang
2023-10-27 13:44:11 -07:00
committed by GitHub
parent 1403a1a361
commit 430e3ad986
3 changed files with 4 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ func parse(c *caddy.Controller) (*View, error) {
switch c.Val() {
case "expr":
args := c.RemainingArgs()
prog, err := expr.Compile(strings.Join(args, " "), expr.Env(expression.DefaultEnv(context.Background(), nil)))
prog, err := expr.Compile(strings.Join(args, " "), expr.Env(expression.DefaultEnv(context.Background(), nil)), expr.DisableBuiltin("type"))
if err != nil {
return v, err
}