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: empty exclude value in option file badly handled #4546

Merged
merged 3 commits into from
Jan 6, 2023

Conversation

dkm
Copy link
Member

@dkm dkm commented Jan 5, 2023

An empty value for exclude prop for tool ends up being interpreted as a * wildcard. The variable is a string[] and is set to a single empty string.

fixes #4544

Signed-off-by: Marc Poulhiès dkm@kataplop.net

An empty value for exclude prop for tool ends up being interpreted as a *
wildcard. The variable is a string[] and is set to a single empty string.

fixes #4544

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
@partouf
Copy link
Contributor

partouf commented Jan 6, 2023

I'm not sure if this is correct, but if an empty exclude list just leaves the tool out for everyone, then one might have better chosen to just remove the tool altogether
So I guess I can agree with this change

@partouf partouf merged commit 8503ed6 into main Jan 6, 2023
@partouf partouf deleted the dkm/tool_exclude_fix branch January 6, 2023 15:57
@dkm
Copy link
Member Author

dkm commented Jan 6, 2023

I'm not sure if this is correct, but if an empty exclude list just leaves the tool out for everyone, then one might have better chosen to just remove the tool altogether So I guess I can agree with this change

My initial fix was to remove the empty exclude, but then saw the doc gave the template with empty exclude, so figured the empty exclude is to be interpreted as "nothing to exclude" and not "exclude everything because everything can be searched with an empty string"...

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.

bug: empty exclude prop on tool hides the tool
2 participants