Skip to content

Conversation

@jimmidyson
Copy link
Member

@jimmidyson jimmidyson commented Sep 27, 2024

Reworked checks in pre-commit config to check if generated files are
consistent after running make go-generate, which is called when
building the release so we are confident this doesn't get broken in any
future PRs.

Calling golines when generating deepcopy, etc will ensure a consistent
formatting for these generated files.

Also reinstated go fix as this is now properly supported in recent go versions.

And finally simplify the ignore external call by using golines flag rather than
a grep on the go source dirs.

Reworked checks in pre-commit config to check if generated files are
consistent after running `make go-generate`, which is called when
building the release so we are confident this doesn't get broken in any
future PRs.

Calling golines when generating deepcopy, etc will ensure a consistent
formatting for these generated files.

Also reinstated go fix as this is now properly supported in recent go versions.

And finally simplify the ignore external call by using golines flag rather than
a grep on the go source dirs.
@jimmidyson jimmidyson force-pushed the jimmi/fix-generated-formatting branch from 7db1811 to 79f5eda Compare September 27, 2024 12:37
@jimmidyson jimmidyson enabled auto-merge (squash) September 27, 2024 12:38
@jimmidyson jimmidyson merged commit 056680b into main Sep 27, 2024
22 checks passed
@jimmidyson jimmidyson deleted the jimmi/fix-generated-formatting branch September 27, 2024 15:17
@github-actions github-actions bot mentioned this pull request Sep 26, 2024
jimmidyson added a commit that referenced this pull request Sep 27, 2024
🤖 I have created a release *beep* *boop*
---


## 0.17.0 (2024-09-27)

<!-- Release notes generated using configuration in .github/release.yaml
at main -->

## What's Changed
### Exciting New Features 🎉
* feat: Support XValidations (CEL) for CC variables by @jimmidyson in
#916
* feat: Update addon versions by @jimmidyson in
#917
### Other Changes
* build: Fix up metadata missed in v0.16.0 release process by
@jimmidyson in
#920
* build: Consistently format even generated files by @jimmidyson in
#923


**Full Changelog**:
v0.16.0...v0.17.0

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Daniel Lipovetsky <[email protected]>
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.

4 participants