From 2a6bfc1dc884fff68b349f73850e4f44e59a91d8 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Thu, 20 Jun 2024 15:28:44 -0400 Subject: [PATCH] Makefile: pin raft to a specific SHA1 commit Signed-off-by: Simon Deziel --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f5b6015b0884..9521bac7ea50 100644 --- a/Makefile +++ b/Makefile @@ -53,10 +53,11 @@ lxd-p2c: .PHONY: deps deps: @if [ ! -e "$(RAFT_PATH)" ]; then \ - git clone --depth=1 "https://github.com/canonical/raft" "$(RAFT_PATH)"; \ + git clone "https://github.com/canonical/raft" "$(RAFT_PATH)"; \ elif [ -e "$(RAFT_PATH)/.git" ]; then \ cd "$(RAFT_PATH)"; git pull; \ - fi + fi; \ + git reset --hard abf9c42a9bb63c24920ab9f0bfbc4b7a47e7e5f4 cd "$(RAFT_PATH)" && \ autoreconf -i && \