From 83964979026f600d07f4d461a8a84db5f4f9f292 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Thu, 12 Oct 2023 14:45:09 +0200 Subject: [PATCH] create temp directory for calens when cloning repository Backport of https://github.com/cs3org/reva/pull/4212/commits/bebbd4cd8df578a2fc3df5447cbe0126a6df5d15 --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index bb6f12cbec..e6867080a9 100644 --- a/Makefile +++ b/Makefile @@ -43,9 +43,10 @@ lint-fix: $(GOLANGCI_LINT) $(CALENS): @mkdir -p $(@D) - git clone --depth 1 --branch v0.2.0 -c advice.detachedHead=false https://github.com/restic/calens.git /tmp/calens - cd /tmp/calens && GOBIN=$(@D) go install - rm -rf /tmp/calens + CALENS_DIR=`mktemp -d` + git clone --depth 1 --branch v0.2.0 -c advice.detachedHead=false https://github.com/restic/calens.git $(CALENS_DIR) + cd $(CALENS_DIR) && GOBIN=$(@D) go install + rm -rf $(CALENS_DIR) .PHONY: check-changelog check-changelog: $(CALENS)