对象效果 JSON 使用 resource_id/key 小写标签;按 Key 匹配会得到空集合, 导致已发生的 delete-intent 被误报为缺失。
This commit is contained in:
@@ -1310,7 +1310,7 @@ func r38ObjectEffectPhases(t *testing.T, archiveRoot, key string) map[string]map
|
||||
if json.Unmarshal(raw, &effect) != nil || effect.Object == nil {
|
||||
return nil
|
||||
}
|
||||
if got, _ := effect.Object["Key"].(string); got != key {
|
||||
if got, _ := effect.Object["key"].(string); got != key {
|
||||
return nil
|
||||
}
|
||||
out[strings.TrimSuffix(filepath.Base(path), ".json")] = map[string]any{
|
||||
|
||||
Reference in New Issue
Block a user