Skip to content

v0.2.0

Latest

Choose a tag to compare

@cloudposse-releaser cloudposse-releaser released this 17 Jun 20:30
· 2 commits to main since this release
6b91ca2
feat: support environments with hyphens Corey Zuares (@czuares) (#37) ## what * Quote `env` so `jq` interprets it properly as a key

why

  • We have a use case where our preview environments contain a hyphen
  • The cleanup step fails because jq misinterprets the key
% echo '{"preview-foo": "deploy/preview"}' | jq -cr '.preview-foo'
jq: error: foo/0 is not defined at <top-level>, line 1, column 10:
    .preview-foo
             ^^^
jq: 1 compile error

vs.

% echo '{"preview-foo": "deploy/preview"}' | jq -cr '."preview-foo"'
deploy/preview