Skip to content

Commit

Permalink
Makefile: Use dqlite lts-1.17.x when building deps and making dist ta…
Browse files Browse the repository at this point in the history
…rball

And log what is happening.

Signed-off-by: Thomas Parrott <[email protected]>
(cherry picked from commit 46e0a4a)
  • Loading branch information
tomponline committed Nov 5, 2024
1 parent 411720d commit 031cd3b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ GOPATH ?= $(shell go env GOPATH)
CGO_LDFLAGS_ALLOW ?= (-Wl,-wrap,pthread_create)|(-Wl,-z,now)
SPHINXENV=doc/.sphinx/venv/bin/activate
GOMIN=1.22.7
DQLITE_BRANCH=lts-1.17.x

ifneq "$(wildcard vendor)" ""
DQLITE_PATH=$(CURDIR)/vendor/dqlite
Expand Down Expand Up @@ -57,8 +58,10 @@ lxd-migrate:
deps:
# dqlite (+raft)
@if [ ! -e "$(DQLITE_PATH)" ]; then \
git clone --depth=1 "https://github.com/canonical/dqlite" "$(DQLITE_PATH)"; \
echo "Retrieving dqlite from ${DQLITE_BRANCH} branch"; \
git clone --depth=1 --branch "${DQLITE_BRANCH}" "https://github.com/canonical/dqlite" "$(DQLITE_PATH)"; \
elif [ -e "$(DQLITE_PATH)/.git" ]; then \
echo "Updating existing dqlite branch"; \
cd "$(DQLITE_PATH)"; git pull; \
fi

Expand Down Expand Up @@ -191,7 +194,7 @@ dist: doc
(cd $(TMP)/lxd-$(VERSION) ; go mod vendor)

# Download the dqlite library
git clone --depth=1 https://github.com/canonical/dqlite $(TMP)/lxd-$(VERSION)/vendor/dqlite
git clone --depth=1 --branch "${DQLITE_BRANCH}" https://github.com/canonical/dqlite $(TMP)/lxd-$(VERSION)/vendor/dqlite
(cd $(TMP)/lxd-$(VERSION)/vendor/dqlite ; git show-ref HEAD | cut -d' ' -f1 > .gitref)

# Copy doc output
Expand Down

0 comments on commit 031cd3b

Please sign in to comment.