Skip to content

fix: use compact jq output to avoid multiline string in Python heredoc#8

Merged
adrianomargarin merged 1 commit intomainfrom
fix/contributors-compact-jq
Apr 1, 2026
Merged

fix: use compact jq output to avoid multiline string in Python heredoc#8
adrianomargarin merged 1 commit intomainfrom
fix/contributors-compact-jq

Conversation

@adrianomargarin
Copy link
Copy Markdown
Owner

Summary

  • jq outputs pretty-printed (multi-line) JSON by default
  • When $AUTHORS was substituted into json.loads('$AUTHORS') inside the Python heredoc, the embedded newlines caused a SyntaxError: unterminated string literal
  • Fix: add -c flag to jq so the output is a single-line compact JSON string

Test plan

  • Trigger the workflow manually via workflow_dispatch
  • Confirm no SyntaxError in the Python step
  • Confirm pyproject.toml authors are updated correctly

@adrianomargarin adrianomargarin merged commit 43afc0b into main Apr 1, 2026
9 checks passed
@adrianomargarin adrianomargarin deleted the fix/contributors-compact-jq branch April 1, 2026 04:33
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

Successfully merging this pull request may close these issues.

1 participant