Comment 0 for bug 1767240

Revision history for this message
Barry Price (barryprice) wrote :

Running "charm build" for a reactive charm results in the keys and values within metadata.yaml becoming quoted.

So this:

$ grep name metadata.yaml
name: canonical-livepatch

becomes this:

$ grep name metadata.yaml
"name": "canonical-livepatch"

Which means this:

FOUND_CHARM=$(find . -maxdepth 1 -name metadata.yaml | xargs grep '^name' | awk '{print $2}')

will not find anything.

I'll put an MP together shortly, should be a trivial fix via e.g.:

FOUND_CHARM=$(find . -maxdepth 1 -name metadata.yaml | xargs grep '^"*name' | awk -F'"' '{print $4}')