mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 10:43:17 -04:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user