From 2511aefac05135ee10c5e7a54a5988fd66503d57 Mon Sep 17 00:00:00 2001 From: Ron Evans Date: Sun, 5 May 2019 13:40:41 +0200 Subject: [PATCH] docker: perform a hard submodule reset after having moved the git repos directory Signed-off-by: Ron Evans --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2ace118dd..0a8a51a08 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,8 +10,11 @@ RUN wget -O- https://raw.githubusercontent.com/golang/dep/master/install.sh | sh COPY . /go/src/github.com/tinygo-org/tinygo +# remove submodules directories and re-init them to fix any hard-coded paths +# after copying the tinygo directory in the previous step. RUN cd /go/src/github.com/tinygo-org/tinygo/ && \ - git submodule update --init + rm -rf ./lib/* && \ + git submodule update --init --recursive --force RUN cd /go/src/github.com/tinygo-org/tinygo/ && \ dep ensure --vendor-only && \