summaryrefslogtreecommitdiff
path: root/sdk/update.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2022-09-22 15:30:58 +0100
committer Paul Duffin <paulduffin@google.com> 2022-09-26 18:23:25 +0100
commit02e25c85eb32c337b3f8a2033c6c092b8fea91d3 (patch)
tree8c4c2e777fafa91cfd39c00113303e198cece44f /sdk/update.go
parent394a12b3150981364ccd1302c56e08c36c91520a (diff)
Rename sdk field tag "keep" to "ignore"
"ignore" is a better description of the effect that this tag has on the optimization that is done as part of the sdk snapshot generation. "keep" implies that something special is done with the field during the optimization process but actually the optimization process completely ignores the property, just as it does with unexported fields. Bug: 248258460 Test: m nothing Change-Id: Idfdfd87f927d641d4d301cbbde72b463c89155bf
Diffstat (limited to 'sdk/update.go')
-rw-r--r--sdk/update.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/sdk/update.go b/sdk/update.go
index 81f3672fc..f20f1d6e9 100644
--- a/sdk/update.go
+++ b/sdk/update.go
@@ -2217,8 +2217,8 @@ func (e *commonValueExtractor) gatherFields(structType reflect.Type, containingS
continue
}
- // Ignore fields whose value should be kept.
- if proptools.HasTag(field, "sdk", "keep") {
+ // Ignore fields tagged with sdk:"ignore".
+ if proptools.HasTag(field, "sdk", "ignore") {
continue
}