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

Error: unknown command "r" for "yq" #217

Open
meodemsao opened this issue Aug 9, 2021 · 7 comments
Open

Error: unknown command "r" for "yq" #217

meodemsao opened this issue Aug 9, 2021 · 7 comments

Comments

@meodemsao
Copy link

when i run command yarn setup:local
log out put

Error: unknown command "r" for "yq"
Run 'yq --help' for usage.
Registering 
**** apps/service-tenant
Success! Data written to: ultimatebackend/config/
Error: unknown command "r" for "yq"
Run 'yq --help' for usage.
Registering 
**** apps/service-notification
Success! Data written to: ultimatebackend/config/
Error: unknown command "r" for "yq"
Run 'yq --help' for usage.
Registering 
**** apps/service-role
Success! Data written to: ultimatebackend/config/
Error: unknown command "r" for "yq"
Run 'yq --help' for usage.
Registering 
**** apps/api-admin
Success! Data written to: ultimatebackend/config/
Error: unknown command "r" for "yq"
Run 'yq --help' for usage.
Registering 
**** apps/service-billing
Success! Data written to: ultimatebackend/config/
Error: unknown command "r" for "yq"
Run 'yq --help' for usage.
Registering 
**** apps/service-access
Success! Data written to: ultimatebackend/config/
Error: unknown command "r" for "yq"
Run 'yq --help' for usage.
Registering 
**** apps/service-project
Success! Data written to: ultimatebackend/config/
Error: unknown command "r" for "yq"
Run 'yq --help' for usage.```
@juicycleff
Copy link
Owner

@meodemsao what version of OS are you using?

@meodemsao
Copy link
Author

meodemsao commented Aug 9, 2021

i using macos 11.5.1, yq 4.11.2

@suadik
Copy link
Contributor

suadik commented Aug 9, 2021

Please try replacing this in the register.sh in the script folder

SVC_NAME=$(yq r ./"${PROJECT_DIR}"/${BOOTSTRAP_PATH} 'service.name' )

with this

SVC_NAME=$(yq eval '.service.name' ./"${PROJECT_DIR}"/${BOOTSTRAP_PATH} )

Thank you

@meodemsao
Copy link
Author

@suadik seem work well thank you, please create pull request

@meodemsao
Copy link
Author

@suadik i have question, how to use yq on window
I try using yq on window but seem hard to config env param like path

@suadik
Copy link
Contributor

suadik commented Aug 11, 2021

@meodemsao haven't run it on windows before.

jclaveau added a commit to jclaveau/ultimate-backend that referenced this issue Jan 5, 2022
@guairedlein
Copy link

the version 4 of yq have this problem, downgrade to 3.6

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

No branches or pull requests

4 participants