From 9d2be5daaa57c3502081b9b4d8de051343d9a2b1 Mon Sep 17 00:00:00 2001 From: Feng Ruohang Date: Sun, 8 Nov 2026 11:38:59 +0800 Subject: [PATCH] chore(batch): keep the policy snapshot out of msgp generation batchPolicySnapshot holds the IAM store, a context and a mutex. Without an ignore directive, go generate emitted msgp encoders for it that do not compile, so make check-gen (and the check-gen step of CI) failed on the generated batch-authz files. The committed generated files are unchanged. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Feng Ruohang (cherry picked from commit a6571a53e9be790da34bc85cc737832c223c1d7e) --- cmd/batch-authz.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/batch-authz.go b/cmd/batch-authz.go index 7b7163b8d..59c74262d 100644 --- a/cmd/batch-authz.go +++ b/cmd/batch-authz.go @@ -572,6 +572,8 @@ const batchIAMLoadTimeout = 5 * time.Second // waiting for the cache lock, which taking the write lock back after each // read would cause. It writes nothing to the cache but the lazily loaded // mappings, which the request path stores under the read lock as well. +// +//msgp:ignore batchPolicySnapshot type batchPolicySnapshot struct { *IAMStoreSys ctx context.Context