Skip to content

Conversation

NickLarsenNZ
Copy link
Member

Ansible enables whitespace trimming for j2 template blocks, which means the COPY command was being hoisted into the comment on the line above.

The comment was only added so that hadolint would be able to parse the Dockerfile.

We've chosen to ignore j2 files rather than disable the trimming, as that could lead to other unknown problems across many files (with the least of the problems being new lint failures).

This does mean that formatting problems will only be picked up in PRs on the operators after templating, and fixes will need pulling back into operator-templating.

@NickLarsenNZ NickLarsenNZ self-assigned this Sep 17, 2024
… it what it was before recent broken changes).
@NickLarsenNZ NickLarsenNZ added this pull request to the merge queue Sep 17, 2024
Merged via the queue into main with commit 918b646 Sep 17, 2024
2 checks passed
@NickLarsenNZ NickLarsenNZ deleted the fix/silly-templating branch September 17, 2024 19:32
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.

2 participants