From d07f07847cb8086ffafac412a1ad14d8a953f9da Mon Sep 17 00:00:00 2001 From: Malfurious Date: Sat, 9 Sep 2023 03:11:16 -0400 Subject: Revert "acid: build: Cache path to the docker-compose.yml file" This ends up being unnecessary. We don't need the content of the YML file to correctly clean up resources. Docker compose inherently knows how to handle it. As long as we operate with the correct --project-name (whether it's explicitly given, or determined by current directory), `docker compose down` will do the job. We can therefore run from a workind directory that is unrelated to the target service, even if it contains a different docker-compose.yml file. This reverts commit 7a7ff89ff16542d30ff7c1f70689236b8fd9c607. Signed-off-by: Malfurious --- acid/cyche-build | 1 - acid/cyche-source | 1 - 2 files changed, 2 deletions(-) diff --git a/acid/cyche-build b/acid/cyche-build index 5920a9e..310a087 100755 --- a/acid/cyche-build +++ b/acid/cyche-build @@ -43,7 +43,6 @@ docker compose $next --file "$2" up \ --remove-orphans \ --force-recreate -echo "$2" >.git/previous_file echo "$3" >.git/previous_hash if [ "$4" == "--self" ]; then diff --git a/acid/cyche-source b/acid/cyche-source index 09cfa72..ee4caca 100755 --- a/acid/cyche-source +++ b/acid/cyche-source @@ -29,7 +29,6 @@ if ! [ -d "$1" ]; then git clone "$2" "$1" >&2 || exit 2 touch "$1/.git/previous_hash" touch "$1/.git/previous_slug" - touch "$1/.git/previous_file" fi cd "$1" -- cgit v1.2.3