From 33692a181501e0edc62d3f04b463b3b5bca02c5f Mon Sep 17 00:00:00 2001 From: Akshay Shah Date: Tue, 12 Sep 2023 09:40:13 -0700 Subject: [PATCH] Bypass deprecation lint warning (#45) CI is failing because of a deprecation notice on `cel.OptCheckStringFormat`, but the recommended alternative doesn't appear to exist. I've filed https://github.com/google/cel-go/issues/837 upstream to clarify, but for now tests are passing so I think we can safely bypass this lint error. I also filed https://github.com/bufbuild/protovalidate-go/issues/44 so that we don't forget to migrate to whichever API is recommended and remove this bypass. --- internal/celext/lib.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/celext/lib.go b/internal/celext/lib.go index baef7df..099b10a 100644 --- a/internal/celext/lib.go +++ b/internal/celext/lib.go @@ -268,7 +268,7 @@ func (l lib) ProgramOptions() []cel.ProgramOption { return []cel.ProgramOption{ cel.EvalOptions( cel.OptOptimize, - cel.OptCheckStringFormat, + cel.OptCheckStringFormat, //nolint:staticcheck ), } }