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

autoapproval triggers script fails with invalid input text "r" #499

Open
rabadiw opened this issue Jul 19, 2022 · 0 comments
Open

autoapproval triggers script fails with invalid input text "r" #499

rabadiw opened this issue Jul 19, 2022 · 0 comments

Comments

@rabadiw
Copy link

rabadiw commented Jul 19, 2022

Issue

$ make start-autoapprove-all
/scripts/run-autoapproval-triggers.sh triggers/.daml/dist/da-marketplace-triggers-0.2.0.dar .dev
Error: 1:1: invalid input text "r"
make: *** [start-autoapprove-all] Error 1

Theory

Using the pretense of yq version 4.26.1. The use of yq to extract the parties is not valid.

Solution

Change line 4 from parties=$(yq r daml.yaml 'parties.*') to parties=$(yq -r '.parties[]' daml.yaml)

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

1 participant