diff --git a/Dockerfile b/Dockerfile index 2ace118d..0a8a51a0 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 && \