bcgov / aries-oca-bundles

aries-oca-bundles
Apache License 2.0
8 stars 20 forks source link

Fix JQ handling error in OCA Bundle generator script genBundle.sh when using large lines in the branding.json file -- e.g. inline images #100

Closed swcurran closed 9 months ago

swcurran commented 9 months ago

When an inline image is used in a branding.json file, the genBundle.sh script in the ./scripts folder generates a JQ utility error. For example, currently in the repo:

The error is coming from this line: ${JQ} ".[].overlays += $(cat ${BCKFILE})" ${OCABUNDLE} > ${TMPOCABUNDLE}

In this -- the ${BCKFILE} is the branding.json file.

This article found by searching for jq: Argument list too long seems to be the solution, but I just don't quite get it. I'm also thinking that if instead of cating the file, it was processed as a file, the jq command might work. Not sure.

Please investigate.

swcurran commented 9 months ago

@esune @amanji -- FYI.