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

Fix format #379

Merged
merged 4 commits into from
Oct 11, 2023
Merged

Fix format #379

merged 4 commits into from
Oct 11, 2023

Conversation

jrajahalme
Copy link
Member

@jrajahalme jrajahalme commented Oct 10, 2023

Add a new format check workflow.

Add starter and vendor to the list of excluded directories and apply make fix.

This helps make future PRs cleaner by forcing "make fix" run before submitting PRs.

Add "starter" and "vendor" to excluded directories for format check and fix.

Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
Run 'make fix' to fix formatting issues.

Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
@jrajahalme jrajahalme requested a review from sayboras October 10, 2023 12:59
Copy link
Member

@sayboras sayboras left a comment

Choose a reason for hiding this comment

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

Ah I forgot about these two targets (e.g. fix and check).

Add a new format check workflow to CI.

To run format check locally:
- on docker: docker build --target=format -o out .
  - see results in: out/format-output.txt
  - last line should be "PASS"
- command line: make check

To fix format errors, run "make fix" locally.

Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
@jrajahalme
Copy link
Member Author

Pushed small fix to remove Makeflie.dev from Dockerfile.tests.dockerignore.

@jrajahalme jrajahalme merged commit 79f9a08 into main Oct 11, 2023
2 of 4 checks passed
@sayboras sayboras deleted the fix-format branch December 6, 2023 10:19
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