Skip to content

Commit 430bcb6

Browse files
Install the required version of grpc tools if needed (#830) (#833)
1 parent 78040f8 commit 430bcb6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/helper.psm1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ function Resolve-ProtoBufToolPath
128128
$nugetPath = Get-NugetPackagesPath
129129
$toolsPath = "$RepoRoot/tools"
130130

131-
if (-not (Test-Path "$toolsPath/obj/project.assets.json")) {
131+
if (-not (Test-Path "$toolsPath/obj/project.assets.json") -or
132+
-not (Test-Path "$nugetPath/grpc.tools/$GrpcToolsVersion")) {
132133
dotnet restore $toolsPath --verbosity quiet
133134
if ($LASTEXITCODE -ne 0) {
134135
throw "Cannot resolve protobuf tools. 'dotnet restore $toolsPath' failed."

0 commit comments

Comments
 (0)