Skip to content

Commit 6fe7ebb

Browse files
authored
chore: explicitly remove temporary merged metal spec after codegen (#93)
The semantic-release tool explicitly ignores the `.gitignore` file, which means that the automated release process will commit all files that are present in the local repo even if they are in the `.gitignore`. This updates the Metal codegen task to explicitly clean up the temporary merged spec. If swagger-api/swagger-parser#2105 gets merged and is included in an openapi-generator release before this SDK loses support for Metal, we can remove the temporary merged Metal spec.
1 parent ab953c9 commit 6fe7ebb

File tree

6 files changed

+2
-18467
lines changed

6 files changed

+2
-18467
lines changed

Makefile.metalv1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ codegen:
6565
-o /local/${CODE_DIR} \
6666
-i /local/${SPEC_BASE_DIR}/${PACKAGE_NAME}/temp_merged_spec/${SPEC_ROOT_FILE}
6767
# -i /local/${SPEC_PATCHED_DIR}/${SPEC_ROOT_FILE} # switch back to this when the temporary merged spec is removed
68+
69+
rm -rf /local/${SPEC_BASE_DIR}/${PACKAGE_NAME}/temp_merged_spec
6870

6971
validate:
7072
${OPENAPI_GENERATOR} validate \

spec/services/metalv1/temp_merged_spec/.openapi-generator-ignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

spec/services/metalv1/temp_merged_spec/.openapi-generator/FILES

Lines changed: 0 additions & 3 deletions
This file was deleted.

spec/services/metalv1/temp_merged_spec/.openapi-generator/VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

spec/services/metalv1/temp_merged_spec/README.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)