Skip to content

Commit

Permalink
ci: avoid running ldd against static binaries (#73962)
Browse files Browse the repository at this point in the history
  • Loading branch information
juan131 authored Oct 25, 2024
1 parent 6adba88 commit de684bd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .vib/common/goss/scripts/check-linked-libraries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,11 @@ for file in "${files[@]}"; do
if [[ -n $EXCLUDE_PATHS ]] && [[ "$file" =~ $EXCLUDE_PATHS ]]; then
continue
fi
[[ $(ldd "$file" | grep -c "not found") -eq 0 ]] || exit 1
if ldd "$file" 2>&1 | grep -q "not a dynamic executable"; then
continue
fi
if ldd "$file" | grep -c "not found"; then
echo "missing linked libraries at $file"
exit 1
fi
done

0 comments on commit de684bd

Please sign in to comment.