Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

Fix Protobuf Error with serialized_options #30

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
27 changes: 27 additions & 0 deletions bin/simple-supply-fix-protogen
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!//bin/sh
# Copyright 2019 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# -----------------------------------------------------------------------------

cd protobuf/simple_supply_protobuf
for i in *_pb2.py ; do
grep -q serialized_options $i
if [ $? -eq 0 ] ; then
echo "Removing serialized_options from $i"
cp $i $i.tmp
sed 's/serialized_options=None,//g' <$i.tmp >$i
rm $i.tmp
fi
done

1 change: 1 addition & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ services:
command: |
bash -c "
simple-supply-protogen
simple-supply-fix-protogen
cd curator_app/
npm run build
cd ../
Expand Down