'add_package_alias' on 'create-package-version' stage fails if package alias contains spaces
If the alias of the package contains a space, like in Company Super App
(two spaces) the job fails with the message:
jq: error: syntax error, unexpected $end, expecting QQSTRING_TEXT or QQSTRING_INTERP_START or QQSTRING_END (Unix shell quoting issues?) at <top-level>, line 1:
.packageAliases["Company
jq: 1 compile error
And the sfdx-project.json file with the package alias set as:
"packageAliases": {
"Company Super App": "0HoXX0000000000XXX"
}
Using the salesforce/salesforcedx
Docker image (as mentioned on issue #63).
I don't know if this is an issue related to jq
, or if it is an issue at all. I would like to know if there is, however, a naming convention for packages. Since this particular package is internal, it is no big deal to rename it and/or use underscores as its alias. I just renamed it with the force:package:update
command:
$ sfdx force:package:update -p 0HoXX0000000000XXX --name "COMPANY_SUPER_APP"