Browse Source

chg: dev: don't print service as it's own dep in debug message.

hostresources
Valentin Lab 6 years ago
parent
commit
cb4c8d7d79
  1. 11
      bin/compose-core

11
bin/compose-core

@ -1100,12 +1100,17 @@ get_docker_compose () {
debug "Compiling 'docker-compose.yml' base for ${DARKYELLOW}$*$NORMAL..."
for target_service in "$@"; do
start=$SECONDS
services=$(get_ordered_service_dependencies "$target_service") || {
services=($(get_ordered_service_dependencies "$target_service")) || {
err "Failed to get dependencies for $DARKYELLOW$target_service$NORMAL"
return 1
}
debug " $DARKYELLOW$target_service$NORMAL deps:$DARKYELLOW" $services "$NORMAL$GRAY(in $((SECONDS - start))s)$NORMAL"
for service in $services; do
if [ "$DEBUG" ]; then
debug " $DARKYELLOW$target_service$NORMAL deps:$DARKYELLOW" \
"${services[@]::$((${#services[@]} - 1))}" \
"$NORMAL$GRAY(in $((SECONDS - start))s)$NORMAL"
fi
for service in "${services[@]}"; do
if [ "${entries[$service]}" ]; then
## Prevent double inclusion of same service if this

Loading…
Cancel
Save