Skip to content

Commit cace9cc

Browse files
sort itavailable_ros2_types and built_packages so that the build result order is reproducible (#934) (#935)
(cherry picked from commit 328798c) Co-authored-by: Amilcar Lucas <[email protected]>
1 parent 90b1269 commit cace9cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

extras/library_generation/library_generation.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,14 @@ done
244244
######## Generate extra files ########
245245
find firmware/mcu_ws/ros2 \( -name "*.srv" -o -name "*.msg" -o -name "*.action" \) | awk -F"/" '{print $(NF-2)"/"$NF}' > /project/available_ros2_types
246246
find firmware/mcu_ws/extra_packages \( -name "*.srv" -o -name "*.msg" -o -name "*.action" \) | awk -F"/" '{print $(NF-2)"/"$NF}' >> /project/available_ros2_types
247+
# sort it so that the result order is reproducible
248+
sort -o /project/available_ros2_types /project/available_ros2_types
247249

248250
cd firmware
249251
echo "" > /project/built_packages
250252
for f in $(find $(pwd) -name .git -type d); do pushd $f > /dev/null; echo $(git config --get remote.origin.url) $(git rev-parse HEAD) >> /project/built_packages; popd > /dev/null; done;
253+
# sort it so that the result order is reproducible
254+
sort -o /project/built_packages /project/built_packages
251255

252256
######## Fix permissions ########
253257
sudo chmod -R 777 .

0 commit comments

Comments
 (0)