Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove .openapi-generator directory #20

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

ctreatma
Copy link
Contributor

The .openapi-generator directory is already mentioned in .gitignore, but it had not been removed from the repository. In addition to removing that directory, this updates the Makefiles so that the .openapi-generator directory is explicitly removed whenever code is regenerated.

We have to explicitly remove this directory because the semantic-release/git plugin intentionally does not respect .gitignore, so these files will be re-committed on every release if they are not explicitly removed during code generation.

Copy link
Contributor

@thogarty thogarty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @ctreatma !

@ctreatma ctreatma force-pushed the ignore-openapi-generator branch from 1f2360a to 721cedd Compare August 20, 2024 14:39
@ctreatma ctreatma merged commit c38995d into main Aug 20, 2024
1 check passed
@ctreatma ctreatma deleted the ignore-openapi-generator branch August 20, 2024 14:39
jkallem-equinix pushed a commit that referenced this pull request Aug 21, 2024
The `.openapi-generator` directory is already mentioned in `.gitignore`,
but it had not been removed from the repository. In addition to removing
that directory, this updates the Makefiles so that the
`.openapi-generator` directory is explicitly removed whenever code is
regenerated.

We have to explicitly remove this directory because the
`semantic-release/git` plugin [intentionally does not respect
`.gitignore`](semantic-release/git#345), so
these files will be re-committed on every release if they are not
explicitly removed during code generation.
jkallem-equinix pushed a commit that referenced this pull request Aug 21, 2024
The `.openapi-generator` directory is already mentioned in `.gitignore`,
but it had not been removed from the repository. In addition to removing
that directory, this updates the Makefiles so that the
`.openapi-generator` directory is explicitly removed whenever code is
regenerated.

We have to explicitly remove this directory because the
`semantic-release/git` plugin [intentionally does not respect
`.gitignore`](semantic-release/git#345), so
these files will be re-committed on every release if they are not
explicitly removed during code generation.
Copy link
Contributor

github-actions bot commented Sep 6, 2024

This PR is included in version 0.4.0 🎉

ctreatma added a commit that referenced this pull request Oct 18, 2024
…#33)

The `.openapi-generator` directory came back in the most recent release,
despite the changes in #20. I _think_ that's because I didn't define the
globs in `assets` as a nested dir, so they get evaluated separately
instead of as a group. This pushes the asset globs down a level in an
attempt to get the `semantic-release/git` plugin to exclude the files we
want to exclude.

This change is based on the following text from [the plugin
docs](https://github.com/semantic-release/git?tab=readme-ov-file#assets):

> Each entry in the `assets` `Array` is globbed individually. A
[glob](https://github.com/micromatch/micromatch#matching-features) can
be a `String` (`"dist/**/*.js"` or `"dist/mylib.js"`) or an `Array` of
`String`s that will be globbed together (`["dist/**", "!**/*.css"]`).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants