From 2070b84793c0f650995610da68c0027de2ce0521 Mon Sep 17 00:00:00 2001 From: Thomas Parrott Date: Tue, 12 Nov 2024 14:28:40 +0000 Subject: [PATCH] snapcraft: nvidia-container: Enable shallow clone To reduce the size of the git repo clone (~2GB) which is causing failures on riscv64. Signed-off-by: Thomas Parrott (cherry picked from commit 4503d12af52741f3bf73317314de4044925cf9a7) --- snapcraft.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/snapcraft.yaml b/snapcraft.yaml index 1c4c6601..f607e0d2 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -570,10 +570,11 @@ parts: - libseccomp source: https://github.com/NVIDIA/libnvidia-container source-commit: 4c2494f16573b585788a42e9c7bee76ecd48c73d # v1.16.1 - # XXX: fails to build if using source-commit and source-depth - #source-depth: 1 + source-depth: 1 source-type: git plugin: make + build-environment: + - GIT_TAG: "1.16.1" # Enables source-depth: 1, should match git tag without "v" prefix. build-packages: - bmake - curl