Skip to content

Commit 340a810

Browse files
authored
Use unix line endings always, even on Windows (#24817)
- 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
1 parent ad997e9 commit 340a810

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.gitattributes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Set the default behavior, in case people don't have core.autocrlf set.
2-
* text=auto
1+
# Use unix line endings always, even on Windows
2+
* text=auto eol=lf

eng/pipelines/typespec-validation-all.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,19 @@ pr: none
88

99
jobs:
1010
- job: Validate_All_Specs
11+
12+
strategy:
13+
matrix:
14+
Linux:
15+
Pool: azsdk-pool-mms-ubuntu-2204-general
16+
OsVmImage: ubuntu-22.04
17+
Windows:
18+
Pool: azsdk-pool-mms-win-2022-general
19+
OsVmImage: windows-2022
20+
1121
pool:
12-
name: azsdk-pool-mms-ubuntu-2204-general
13-
vmImage: ubuntu-22.04
22+
name: $(Pool)
23+
vmImage: $(OSVmImage)
1424

1525
steps:
1626
- script: npm ci

0 commit comments

Comments
 (0)