From 7aa91cf06ac00f033ca28332e0c198d1038e4057 Mon Sep 17 00:00:00 2001 From: Matthew Cary Date: Mon, 21 Oct 2024 17:17:07 -0700 Subject: [PATCH] update code generation makefile hints --- contributors/devel/sig-architecture/api_changes.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/contributors/devel/sig-architecture/api_changes.md b/contributors/devel/sig-architecture/api_changes.md index e9a87430d6e..d0faaeadd6f 100644 --- a/contributors/devel/sig-architecture/api_changes.md +++ b/contributors/devel/sig-architecture/api_changes.md @@ -679,15 +679,13 @@ Once all the necessary manually written conversions are added, you need to regenerate auto-generated ones. To regenerate them run: ```sh -make clean && make generated_files +make clean && make update ``` `make clean` is important, otherwise the generated files might be stale, because the build system uses custom cache. -`make all` will invoke `make generated_files` as well. - -The `make generated_files` will also regenerate the `zz_generated.deepcopy.go`, +The `make update` will also regenerate the `zz_generated.deepcopy.go`, `zz_generated.defaults.go`, and `api/openapi-spec/swagger.json`. If regeneration is somehow not possible due to compile errors, the easiest @@ -813,7 +811,7 @@ reviewers to see what has changed between the two versions: ``. 1. A commit that renames ``to `` in the new files. 1. A commit that makes any new changes for ``. -1. A commit that contains the generated files from running `make generated_files`, `make update`, etc. +1. A commit that contains the generated files from running `make update`. Due to the fast changing nature of the project, the following content is probably out-dated: * You must add the version to