Skip to content

Commit

Permalink
Pin to protobuf 3.11 on Windows due to protocolbuffers/protobuf#7567
Browse files Browse the repository at this point in the history
  • Loading branch information
xkszltl committed May 27, 2020
1 parent a66b24f commit 9480660
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions win/pkgs/protobuf.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ if (Test-Path "$root")
}

$latest_ver='v' + $($(git ls-remote --tags "$repo") -match '.*refs/tags/v[0-9\.]*$' -replace '.*refs/tags/v','' | sort {[Version]$_})[-1]

# Pin to 3.11 due to https://github.com/protocolbuffers/protobuf/issues/7567
$latest_ver='v' + $($(git ls-remote --tags "$repo") -match '.*refs/tags/v3\.11\.[0-9\.]*$' -replace '.*refs/tags/v','' | sort {[Version]$_})[-1]

git clone --depth 1 --recursive --single-branch -b "$latest_ver" -j8 "$repo"
pushd "$root"

Expand Down

0 comments on commit 9480660

Please sign in to comment.