From da2ffeb456f1e861a96a3e819eab0c58b8d96aad Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Fri, 7 Dec 2018 15:09:20 +0100 Subject: [PATCH] fix: relation data was forgotten/mixed due to a big cache bug --- bin/compose-core | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/compose-core b/bin/compose-core index 0cb41b5..7e91366 100755 --- a/bin/compose-core +++ b/bin/compose-core @@ -1827,7 +1827,8 @@ export -f _run_service_action_relation get_relation_data_dir() { - local service="$1" target_service="$2" relation_name="$3" cache_file="$state_tmpdir/$FUNCNAME.cache.$1" + local service="$1" target_service="$2" relation_name="$3" \ + cache_file="$state_tmpdir/$FUNCNAME.cache.$(printf "%s\0" "$@" | md5_compat)" if [ -e "$cache_file" ]; then # debug "$FUNCNAME: cache hit ($*)" cat "$cache_file"