Skip to content

Commit

Permalink
create temp directory for calens when cloning repository
Browse files Browse the repository at this point in the history
Backport of cs3org@bebbd4c
  • Loading branch information
rhafer committed Oct 12, 2023
1 parent 2b27cd4 commit 8396497
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8396497

Please sign in to comment.