Skip to content

Enforce LF line endings for shell scripts#521

Open
skoeva wants to merge 1 commit intoAzure:mainfrom
skoeva:line-endings
Open

Enforce LF line endings for shell scripts#521
skoeva wants to merge 1 commit intoAzure:mainfrom
skoeva:line-endings

Conversation

@skoeva
Copy link
Copy Markdown
Collaborator

@skoeva skoeva commented Mar 25, 2026

This change adds a .gitattributes file to ensure .sh files are always checked out with LF line endings, preventing core.autocrlf=true on Windows from converting them to CRLF. This fixes a build failure where bash would reject set -o pipefail\r as an invalid option.

Fixes: #520

Testing

  • Run npm run plugin:setup on Windows and ensure it doesn't fail

@skoeva skoeva self-assigned this Mar 25, 2026
@skoeva skoeva added the bug Something isn't working label Mar 25, 2026
Copilot AI review requested due to automatic review settings March 25, 2026 19:22
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Git attributes configuration to prevent Git from converting shell scripts to CRLF on Windows checkouts (e.g., when core.autocrlf=true), addressing the bash failure reported in #520 during npm run plugin:setup.

Changes:

  • Add a .gitattributes rule to force LF (eol=lf) for *.sh files.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Evangelos Skopelitis <eskopelitis@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] running npm run plugin:setup on windows fails

2 participants