You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Print install download progress and handle indentation inside installer plugin
Instead of having our caller re-write the "nice output" file descriptor to achieve the desired indent level, we print it with the correct indent in the first place.
With this, we can also add a progress meter that is useful e.g. in local CNB installs over slow network connections, as the downloads take longer than the installs, meaning a build might hang for quite some time without and progress output, until, suddenly, the names of the packages installed are printed in fairly quick succession.
This progress meter is disabled in the classic buildpack, because Heroku Dashboard currently trips over the ANSI cursor control codes and ends up swallowing quite a lot of lines.
GUS-W-18506658
[[ -s"$current_install_log" ]] || { echo-e "- ${ext_name} (already enabled)"| indent""$'\r'; } # if nothing was actually installed above, that means the dependency was already satisfied (i.e. extension is statically built into PHP); we need to echo something to that effect
540
+
[[ -s"$current_install_log" ]] || { echo"- ${ext_name} (already enabled)"| indent; } # if nothing was actually installed above, that means the dependency was already satisfied (i.e. extension is statically built into PHP); we need to echo something to that effect
540
541
else
541
542
# composer did not succeed; this means no package that matches all existing package's requirements was found
542
-
echo -n -e "\r"# reset the line
543
543
notice_inline "no suitable native version of ${ext_name} available"
0 commit comments