summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojciech Tyczynski <wojtekt@google.com>2015-05-28 17:41:42 +0200
committerWojciech Tyczynski <wojtekt@google.com>2015-05-28 17:42:41 +0200
commita5e20a975cbae982e5f8fd3960fd9b0680b9e5d3 (patch)
treeaddc2c63ae82420082d3e93433e708f8c94a7662
parent4636961f5a4077462e01f7f4514d852801081c74 (diff)
Update instructions on conversions.
-rw-r--r--api_changes.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/api_changes.md b/api_changes.md
index 4627c6df..17278c6e 100644
--- a/api_changes.md
+++ b/api_changes.md
@@ -254,6 +254,12 @@ regenerate auto-generated ones. To regenerate them:
$ hack/update-generated-conversions.sh
```
+If running the above script is impossible due to compile errors, the easiest
+workaround is to comment out the code causing errors and let the script to
+regenerate it. If the auto-generated conversion methods are not used by the
+manually-written ones, it's fine to just remove the whole file and let the
+generator to create it from scratch.
+
Unsurprisingly, adding manually written conversion also requires you to add tests to
`pkg/api/<version>/conversion_test.go`.