From 00cfa67d140cc1304abfea12b3f73932596fc1d6 Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Tue, 8 Nov 2022 22:50:04 +0100 Subject: [PATCH] functions.sh : maj buildkit v0.10.5 --- functions.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/functions.sh b/functions.sh index 1b663f7..66f183d 100644 --- a/functions.sh +++ b/functions.sh @@ -285,15 +285,16 @@ os.execve(p, ['binary'] + myargs.split(), {'PATH': '${PATH}'})" # Execute buildctl directly from the web my_buildctl () { + buildkitversion='v0.10.5' if [[ $(uname -i) == 'aarch64' ]]; then buildkitarch='arm64' - buildctlchecksum='addd49a1db6962c1f04242c93b91d385742a9f8a971f69014d7fd3add30dd82d9f7c002b4cbe4c18c81759cac1c0e0ff2a7f6014e721074216a4f307b112e30e' + buildctlchecksum='4b194eeb1d1079c7842e40ed0894221405dddf09ce8f0892072afa6c0581e3b5750efbcb93924c2f6739dcab7c1c8a63e99d0084233280bc6f5adb1471bc7c12' else # defaults to amd64 buildkitarch='amd64' - buildctlchecksum='510fe781c844b39b569839f27528a2290f39b25f26182489239557a42edded6c16cec571b20c55bdc8f69ffbb59f8e63320540477c7a0d642543d07df99a198b' + buildctlchecksum='b9e56aebf4dec0cc2f0abfec27c0a89bb1a747ef6fd85233b6358cd83b394ecf879dd963e6e5bfaad08db1c3c46b9a754bbef5d421e74f89781e1849b7c40187' fi - curl -sSLf https://github.com/moby/buildkit/releases/download/v0.9.3/buildkit-v0.9.3.linux-${buildkitarch}.tar.gz | + curl -sSLf https://github.com/moby/buildkit/releases/download/${buildkitversion}/buildkit-${buildkitversion}.linux-${buildkitarch}.tar.gz | tar xOz bin/buildctl | python3 -c " import os, hashlib, sys from sys import stdin