Skip to content

Commit a98b0f3

Browse files
authored
Update plugin bundling script (grpc#2053)
Motivation: The plugin bundling script which is used when we do a release doesn't update the dependencies so will just use whatever version is currently resolved. This means protobuf might not be up-to-date and an older version of `protoc-gen-swift` might get build. Modifications: - Run package update before building Result: The bundled `protoc-gen-swift` should be up-to-date
1 parent cd019f6 commit a98b0f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/bundle-plugins-for-release.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ stage=$(mktemp -d)
4444
stage_bin="${stage}/bin"
4545
mkdir -p "${stage_bin}"
4646

47+
# Make sure dependencies are up-to-date
48+
swift package update
4749
# Make the plugins.
4850
swift build -c release --arch arm64 --arch x86_64 --product protoc-gen-grpc-swift
4951
swift build -c release --arch arm64 --arch x86_64 --product protoc-gen-swift

0 commit comments

Comments
 (0)