Skip to content

Commit ac1d296

Browse files
Install the required version of grpc tools if needed (#830)
1 parent a1f37d4 commit ac1d296

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
@@ -119,7 +119,8 @@ function Resolve-ProtoBufToolPath
119119
$nugetPath = Get-NugetPackagesPath
120120
$toolsPath = "$RepoRoot/tools"
121121

122-
if (-not (Test-Path "$toolsPath/obj/project.assets.json")) {
122+
if (-not (Test-Path "$toolsPath/obj/project.assets.json") -or
123+
-not (Test-Path "$nugetPath/grpc.tools/$GrpcToolsVersion")) {
123124
dotnet restore $toolsPath --verbosity quiet
124125
if ($LASTEXITCODE -ne 0) {
125126
throw "Cannot resolve protobuf tools. 'dotnet restore $toolsPath' failed."

0 commit comments

Comments
 (0)