Skip to content

Normalize cel/prompt_test.go to LF, add missing newline in prompt.go#1361

Merged
l46kok merged 1 commit into
cel-expr:masterfrom
dims:fix-prompt-crlf
Jul 4, 2026
Merged

Normalize cel/prompt_test.go to LF, add missing newline in prompt.go#1361
l46kok merged 1 commit into
cel-expr:masterfrom
dims:fix-prompt-crlf

Conversation

@dims

@dims dims commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #1359, which converted cel/prompt.go to LF but left two loose ends from #1311:

  • cel/prompt_test.go still has CRLF line endings.
  • cel/prompt.go is still missing its trailing final newline (not gofmt-clean).

Fix both, and add a .gitattributes (* text=auto eol=lf) so CRLF cannot ship in a release again — kubernetes/kubernetes#140205 shows the downstream impact when it does: projects that enforce LF via .gitattributes cannot vendor the module byte-for-byte, so their vendor verification fails permanently. (v0.29.1 already unblocks Kubernetes; this PR is the remaining cleanup plus prevention.)

Content is otherwise unchanged: apart from the new .gitattributes, git diff --ignore-cr-at-eol upstream/master shows only the added trailing newline.

cel-expr#1359 converted cel/prompt.go to LF line endings but left the file
without a trailing final newline (not gofmt-clean), and left the CRLF
line endings in cel/prompt_test.go in place.

Fix both, and add a .gitattributes that normalizes text files to LF so
CRLF cannot ship in a release again (see kubernetes/kubernetes#140205
for the downstream impact of CRLF in the v0.29.0 module zip).

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
@dims dims force-pushed the fix-prompt-crlf branch from e9f10a9 to f0d49b2 Compare July 4, 2026 00:49
@dims dims changed the title Normalize cel/prompt.go and cel/prompt_test.go to LF line endings Normalize cel/prompt_test.go to LF, add missing newline in prompt.go Jul 4, 2026
@l46kok

l46kok commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

/gcbrun

@l46kok l46kok merged commit 91b2a93 into cel-expr:master Jul 4, 2026
8 checks passed
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