The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/4921

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
The complete clone of sqlite repo is about 89 MB while the shallow copy is just about 9 MB. There is a significant gain primary in bandwidth saving and consequently in compilation speed.
From f0ed48d5fc24c59ae78a2c3c3a1fbc993b857fac Mon Sep 17 00:00:00 2001
From: Asterios Dimitriou <aster...@pci.gr>
Date: Tue, 14 Aug 2018 14:53:10 +0000
Subject: [PATCH] shallow clone for deps

---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 25cf33543..71d39138d 100644
--- a/Makefile
+++ b/Makefile
@@ -32,7 +32,7 @@ deps:
                cd "$(GOPATH)/deps/sqlite"; \
                git pull; \
        else \
-               git clone "https://github.com/CanonicalLtd/sqlite"; 
"$(GOPATH)/deps/sqlite"; \
+               git clone --depth=1 "https://github.com/CanonicalLtd/sqlite"; 
"$(GOPATH)/deps/sqlite"; \
        fi
 
        cd "$(GOPATH)/deps/sqlite" && \
@@ -46,7 +46,7 @@ deps:
                cd "$(GOPATH)/deps/dqlite"; \
                git pull; \
        else \
-               git clone "https://github.com/CanonicalLtd/dqlite"; 
"$(GOPATH)/deps/dqlite"; \
+               git clone --depth=1 "https://github.com/CanonicalLtd/dqlite"; 
"$(GOPATH)/deps/dqlite"; \
        fi
 
        cd "$(GOPATH)/deps/dqlite" && \
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to