Skip to content

Commit

Permalink
Update plugin bundling script
Browse files Browse the repository at this point in the history
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
  • Loading branch information
glbrntt committed Sep 11, 2024
1 parent cd019f6 commit 01e0f29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/bundle-plugins-for-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ stage=$(mktemp -d)
stage_bin="${stage}/bin"
mkdir -p "${stage_bin}"

# Make sure dependencies are up-to-date
swift package update
# Make the plugins.
swift build -c release --arch arm64 --arch x86_64 --product protoc-gen-grpc-swift
swift build -c release --arch arm64 --arch x86_64 --product protoc-gen-swift
Expand Down

0 comments on commit 01e0f29

Please sign in to comment.