From 7d4cd8ffb7555929d062ff693346016f092b156a Mon Sep 17 00:00:00 2001 From: matejcik Date: Wed, 4 Dec 2024 10:19:17 +0100 Subject: [PATCH] build(build-docker): perform a reproducible shallow clone of the repository in build-docker.sh --- build-docker.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/build-docker.sh b/build-docker.sh index a5598a4f16..187ae13758 100755 --- a/build-docker.sh +++ b/build-docker.sh @@ -72,7 +72,7 @@ INIT=1 MODELS=(R T T3T1) CORE_TARGETS=(boardloader bootloader firmware) -REPOSITORY="/local" +REPOSITORY="file:///local" while true; do case "$1" in @@ -204,7 +204,7 @@ if [ $INIT -eq 1 ]; then mkdir -p /reproducible-build cd /reproducible-build - git clone "$REPOSITORY" trezor-firmware + git clone --branch="$TAG" --depth=1 "$REPOSITORY" trezor-firmware cd trezor-firmware EOF @@ -224,8 +224,6 @@ fi # init # append common part to script cat <> "$SCRIPT_NAME" $GIT_CLEAN_REPO - git fetch origin "$COMMIT_HASH" - git checkout "$COMMIT_HASH" git submodule update --init --recursive poetry install cd core/embed/rust