Skip to content

Conversation

theseion
Copy link
Collaborator

The global variable holding the configuration was shadowed in the method that loades the configuration file. Hence, the configuration file was never applied.

The global variable holding the configuration was shadowed in the method
that loades the configuration file. Hence, the configuration file was
never applied.
@theseion theseion requested a review from fzipi December 11, 2022 11:18
@theseion theseion added the bug Something isn't working label Dec 11, 2022
Copy link
Member

@fzipi fzipi left a comment

Choose a reason for hiding this comment

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

Nice catch! I wonder if we can test this somehow 🤔

@theseion
Copy link
Collaborator Author

Yes, we can. Unfortunately, testing cobra is a bit involved and i wanted to get this fix in immediately. We can copy test setup for cobra from crs-toolchain.

@theseion theseion merged commit 2a8aa52 into coreruleset:main Dec 11, 2022
@theseion theseion deleted the fix-config-var-shadowing branch December 11, 2022 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants