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 CRS 4.0.0 rc2 adding a cleanup phase #9

Merged
merged 3 commits into from
Nov 3, 2023

Conversation

M4tteoP
Copy link
Member

@M4tteoP M4tteoP commented Nov 3, 2023

The PR proposes to add a cleanup phase before downloading the new CRS. It is required cause otherwise deleted files from the official CRS repo are not going to be overridden/deleted here. It leads to polluting the latest download with leftovers from previous downloads

magefile.go Outdated
if err != nil {
return err
}
if strings.HasPrefix(d.Name(), "REQUEST-") || strings.HasPrefix(d.Name(), "RESPONSE-") {
Copy link
Member

Choose a reason for hiding this comment

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

Wonder about this, shall we just remove everything? Otherwise could you add a comment on why this condition?

Copy link
Member Author

@M4tteoP M4tteoP Nov 3, 2023

Choose a reason for hiding this comment

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

Refactored to make it more explicit. The goal is to not delete .go files that belong to this repo

Copy link
Member

Choose a reason for hiding this comment

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

I am lost now, do we iterate over root files in this repo? Can't we just delete rules folder and tests folder?

@jcchavezs jcchavezs merged commit fd5c847 into corazawaf:main Nov 3, 2023
2 checks passed
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