ultimate-backend icon indicating copy to clipboard operation
ultimate-backend copied to clipboard

Error: unknown command "r" for "yq"

Open meodemsao opened this issue 3 years ago • 7 comments

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.```

meodemsao avatar Aug 09 '21 07:08 meodemsao

@meodemsao what version of OS are you using?

juicycleff avatar Aug 09 '21 08:08 juicycleff

i using macos 11.5.1, yq 4.11.2

meodemsao avatar Aug 09 '21 08:08 meodemsao

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

suadik avatar Aug 09 '21 10:08 suadik

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

meodemsao avatar Aug 10 '21 04:08 meodemsao

@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

meodemsao avatar Aug 10 '21 11:08 meodemsao

@meodemsao haven't run it on windows before.

suadik avatar Aug 11 '21 15:08 suadik

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

guairedlein avatar Sep 13 '22 00:09 guairedlein