Skip to content

Commit 3af8237

Browse files
committed
Change generation order in the bump-version.sh script
1 parent 0c15237 commit 3af8237

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/bump-version.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
set -o nounset
1111
set -ex
1212

13-
# The bucket url of this script in Google Cloud, set in sync_scripts
1413
: "${API_GROUP?API_GROUP is not set}"
1514
: "${OLD_API_VERSION:?OLD_API_VERSION is not set, it needs the format vX}"
1615
: "${NEW_API_VERSION:?NEW_API_VERSION is not set, it needs the format vX}"
@@ -40,11 +39,11 @@ function generate_client_files {
4039
rm client/api/$target/api.pb.go || true
4140
rm client/groups/$target/client_generated.go || true
4241

43-
# generate client_generated.go
44-
make generate-csi-proxy-api-gen
4542
# generate api.pb.go
4643
# it's going to fail but it's expected :(
4744
make generate-protobuf || true
45+
# generate client_generated.go
46+
make generate-csi-proxy-api-gen
4847

4948
# restore files from other API groups (side effect of generate-protobuf)
5049
other_leaf_client_files=$(find client/api/ -links 2 -type d -exec echo {} \; | grep -v "$target\$")

0 commit comments

Comments
 (0)