From 98c70c361060d91be5bd4cb4dcbf5b5ade12998f 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) Signed-off-by: Thomas Parrott (cherry picked from commit a73fe9974c1230c34b053666452cd2486e20fba7) --- snapcraft.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/snapcraft.yaml b/snapcraft.yaml index 9964e2b6..a86e54a6 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -492,10 +492,12 @@ parts: after: - libseccomp source: https://github.com/NVIDIA/libnvidia-container - source-type: git - source-tag: v1.11.0 + source-commit: c8f267be0bac1c654d59ad4ea5df907141149977 # v1.11.0 source-depth: 1 + source-type: git plugin: make + build-environment: + - GIT_TAG: "1.11.0" # Enables source-depth: 1, should match git tag without "v" prefix. build-packages: - bmake - curl