Skip to content

Commit

Permalink
Use unix line endings always, even on Windows (#24817)
Browse files Browse the repository at this point in the history
- Fixes #24791
- Fixes #24790
- Ensures developers can successfully work on both Linux and Windows
- Consistent with other repos like `microsoft/typespec` and `azure/azure-sdk-for-js`
- Required for node-based tools like `tsp format` which assume LF
  • Loading branch information
mikeharder authored Aug 8, 2023
1 parent ad997e9 commit 340a810
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto
# Use unix line endings always, even on Windows
* text=auto eol=lf
14 changes: 12 additions & 2 deletions eng/pipelines/typespec-validation-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,19 @@ pr: none

jobs:
- job: Validate_All_Specs

strategy:
matrix:
Linux:
Pool: azsdk-pool-mms-ubuntu-2204-general
OsVmImage: ubuntu-22.04
Windows:
Pool: azsdk-pool-mms-win-2022-general
OsVmImage: windows-2022

pool:
name: azsdk-pool-mms-ubuntu-2204-general
vmImage: ubuntu-22.04
name: $(Pool)
vmImage: $(OSVmImage)

steps:
- script: npm ci
Expand Down

0 comments on commit 340a810

Please sign in to comment.