Skip to content

Commit 069201f

Browse files
committed
update proto
1 parent e7f48ec commit 069201f

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/Grpc/backend_service.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ syntax = "proto3";
55

66
package durabletask.protos.backend.v1;
77

8-
option csharp_namespace = "Microsoft.DurableTask.AzureManagedBackend.Protobuf";
8+
option csharp_namespace = "Microsoft.DurableTask.Protobuf";
99
option java_package = "com.microsoft.durabletask.implementation.protobuf";
1010
option go_package = "github.com/microsoft/durabletask-protobuf/internal/protos";
1111

src/Grpc/refresh-protos.ps1

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $commitId = $commitDetails.sha
1818

1919
# These are the proto files we need to download from the durabletask-protobuf repository.
2020
$protoFileNames = @(
21-
"orchestrator_service.proto", "backend_service.proto"
21+
"orchestrator_service.proto","backend_service.proto"
2222
)
2323

2424
# Download each proto file to the local directory using the above commit ID
@@ -37,14 +37,6 @@ foreach ($protoFileName in $protoFileNames) {
3737
Write-Output "Downloaded $url to $outputFile"
3838
}
3939

40-
# Post-process backend_service.proto to update the namespace
41-
$backendServiceFile = "$PSScriptRoot\backend_service.proto"
42-
if (Test-Path $backendServiceFile) {
43-
$content = Get-Content $backendServiceFile -Raw
44-
$content = $content -replace 'option csharp_namespace = "Microsoft\.DurableTask\.Protobuf";', 'option csharp_namespace = "Microsoft.DurableTask.AzureManagedBackend.Protobuf";'
45-
Set-Content -Path $backendServiceFile -Value $content -NoNewline
46-
}
47-
4840
# Log the commit ID and the URLs of the downloaded proto files to a versions file.
4941
# Overwrite the file if it already exists.
5042
$versionsFile = "$PSScriptRoot\versions.txt"

0 commit comments

Comments
 (0)