From 1a8c4dafe2ddf68eea4119100d9f373e21fc48f2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 13 Jun 2026 23:55:51 +0000 Subject: [PATCH] Clarify symlink-depth warning messaging --- install_and_cache_pkgs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install_and_cache_pkgs.sh b/install_and_cache_pkgs.sh index 17aa9b0..757d7d7 100755 --- a/install_and_cache_pkgs.sh +++ b/install_and_cache_pkgs.sh @@ -106,7 +106,7 @@ for installed_package in ${installed_packages}; do get_tar_relpath "${f}" if [ -L "${f}" ]; then symlink_path="${f}" - # Alternatives chains are typically short; keep a high ceiling to avoid loops. + # Alternatives chains are typically only a few links; 40 is a high safety ceiling. max_symlink_depth=40 symlink_depth=0 while [ -L "${symlink_path}" ] && [ ${symlink_depth} -lt ${max_symlink_depth} ]; do @@ -135,7 +135,7 @@ for installed_package in ${installed_packages}; do done if [ -L "${symlink_path}" ] && [ ${symlink_depth} -ge ${max_symlink_depth} ]; then - log " warning: max symlink depth ${max_symlink_depth} reached for ${f}." + log " warning: max symlink depth ${max_symlink_depth} reached for ${f}. Possible symlink loop or excessive chain depth." fi fi fi