From 8f2082df6962f43987f0dc9275ad0adbf29dd872 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Tue, 21 Dec 2021 19:39:37 +0100 Subject: [PATCH] docker: remove only subdirectories (which are updated as submodules) from lib to keep picolibc file in its correct place Signed-off-by: deadprogram --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2dffc112..e40f11c3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,10 +20,9 @@ FROM tinygo-llvm-build AS tinygo-compiler COPY . /tinygo -# remove submodules directories and re-init them to fix any hard-coded paths -# after copying the tinygo directory in the previous step. +# update submodules RUN cd /tinygo/ && \ - rm -rf ./lib/* && \ + rm -rf ./lib/*/ && \ git submodule sync && \ git submodule update --init --recursive --force