docker: remove only subdirectories (which are updated as submodules) from lib to keep picolibc file in its correct place

Signed-off-by: deadprogram <ron@hybridgroup.com>
Этот коммит содержится в:
deadprogram 2021-12-21 19:39:37 +01:00 коммит произвёл Ron Evans
родитель da8eb521e1
коммит 8f2082df69

Просмотреть файл

@ -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