Skip to content

Enforce LF line endings for compose setup shell script#128

Open
GeorgeSpring wants to merge 1 commit intotemporalio:mainfrom
GeorgeSpring:fix/compose-setup-shell-lf-line-endings
Open

Enforce LF line endings for compose setup shell script#128
GeorgeSpring wants to merge 1 commit intotemporalio:mainfrom
GeorgeSpring:fix/compose-setup-shell-lf-line-endings

Conversation

@GeorgeSpring
Copy link

What was changed

Enforced LF line endings for the compose/scripts/setup-postgres-es.sh script via .gitattributes.

No changes to the script logic itself.

Why?

Although the script is stored with LF line endings in the repository, Git may check it out as CRLF on Windows due to core.autocrlf. When the file is mounted into a Linux Docker container, this causes the POSIX /bin/sh script to fail with:

set: illegal option -

Enforcing LF line endings at the Git level ensures the docker-compose setup works reliably across platforms.

Checklist

  1. Closes [Bug] illegal option in /scripts/setup-postgres-es.sh #126
  2. How was this tested:
  • Cloned the repository on Windows with core.autocrlf=true
  • Ran the official docker-compose setup
  • Verified that the setup script executes correctly inside the container without /bin/sh errors
  1. Any docs updates needed?
  • No

@GeorgeSpring GeorgeSpring requested a review from a team as a code owner January 31, 2026 13:01
@CLAassistant
Copy link

CLAassistant commented Jan 31, 2026

CLA assistant check
All committers have signed the CLA.

@GeorgeSpring GeorgeSpring force-pushed the fix/compose-setup-shell-lf-line-endings branch from 6711707 to 9928c7d Compare January 31, 2026 13:11
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.

[Bug] illegal option in /scripts/setup-postgres-es.sh

2 participants