-
-
Notifications
You must be signed in to change notification settings - Fork 300
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
Change * value to 'all' for improved bash compatibility ( Issue #5963 ) #6459
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @clionachee for looking into it.
Please make sure to keep it backward compatible by still supporting "*" as a valid input to enable all namespaces.
Also should make sure to update other references in the code
"rest.namespace": "*", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for your submission @clionachee !!!
If you would be so kind, would you mind added a simple comment to the relevant cors
flags about needing to quote *?
Please make sure that we are backwards compatible (non-breaking change) so we support existing users. Thanks!!!
Looks like me and @nflaig both were reviewing concurrently and made the same comments. Great minds think alike lol
commit Co-authored-by: Nico Flaig <[email protected]>
Co-authored-by: Nico Flaig <[email protected]>
Co-authored-by: Nico Flaig <[email protected]>
I've committed the suggestions, are things going well, and thanks for the details in the comments for real. If I overlooked something, please let me know as well. Thanks again. |
Thanks for the updates @clionachee. We still need to make sure to
|
@clionachee are you still working on this? Let us know if you need further guidance on how to proceed |
This is probably a rather dumb question, but about these, may I ask where do I get to change them, because I've committed the change. Sorry for any disturbance and thanks a bunch for real. be backward compatible, i.e. if a user passes "" it should enable all namespaces |
You can just search the code base for "rest.namespace" to see where it is used. And to add backward compatibility is a simple change in the file you already edited. You can simply test your changes by using the Dev CLI command to start Lodestar and try different paramets for |
Hi again, @nflaig I searched for |
Thank you very much for you help and the attempt to fix this @clionachee! We really love our community and appreciate your attempt to fix this for us. If you are still having trouble despite the help from @nflaig I think this may be beyond your current skill level with TypeScript and the IDE. Please feel free to do a bit more digging and learning and come back and see us when you are a bit more comfortable with the development workflow. We will be here waiting for you and will be happy to help when you get some more experience under your belt. 😃 |
Motivation
The motivation behind this PR is to address issue #5963, which was opened on Sep 18, 2023, by nflaig. The problem described in the issue is that the usage of
"*"
as a value in certain CLI flags is not friendly to use in bash scripts. This is because*
is interpreted as a wildcard character in bash, rather than as a string. The goal of this PR is to replace the usage of"*"
with a more bash-friendly value, such as the word "all", to improve compatibility with bash scripts.Description
The changes made in this PR involve replacing the usage of
"*"
with"all"
in theenabledAll
variable declaration. This change ensures better compatibility with bash scripts, as"*"
can cause issues when interpreted as a wildcard character in bash environments. The modification is made in theapi.ts
file located atlodestar/packages/cli/src/options/beaconNodeOptions/api.ts
, specifically on line 4.Closes #5963
Steps to test or reproduce