Skip to content

Commit

Permalink
Bump to remove dir separator work around (microsoft#4180)
Browse files Browse the repository at this point in the history
Removes work around for this fix
microsoft#4173
  • Loading branch information
m-nash authored and sarangan12 committed Sep 16, 2024
1 parent c8258ba commit 4359ace
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion packages/http-client-csharp/eng/scripts/Generate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ foreach ($directory in $directories) {
$generationDir = $cadlRanchRoot
foreach ($folder in $folders) {
$generationDir = Join-Path $generationDir $folder
$generationDir = $generationDir.Replace("\", "/") # replace \ with / for the path to avoid path-unix-style warning
}

#create the directory if it doesn't exist
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ foreach ($directory in $directories) {
continue
}

$outputDir = $directory.FullName.Substring(0, $directory.FullName.IndexOf("src") - 1).Replace("\", "/") # replace \ with / for the path to avoid path-unix-style warning
$outputDir = $directory.FullName.Substring(0, $directory.FullName.IndexOf("src") - 1)
$subPath = $outputDir.Substring($cadlRanchRoot.Length + 1)

Write-Host "Regenerating $subPath" -ForegroundColor Cyan
Expand Down
9 changes: 4 additions & 5 deletions packages/http-client-csharp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/http-client-csharp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"@azure-tools/typespec-client-generator-core": "0.45.1",
"@microsoft/api-extractor": "^7.40.3",
"@types/node": "~18.13.0",
"@typespec/compiler": "0.59.0",
"@typespec/compiler": "0.59.1",
"@typespec/http": "0.59.0",
"@typespec/json-schema": "0.59.0",
"@typespec/library-linter": "0.59.0",
Expand Down

0 comments on commit 4359ace

Please sign in to comment.