aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile
diff options
context:
space:
mode:
authorRon Evans <[email protected]>2019-05-05 13:40:41 +0200
committerAyke <[email protected]>2019-05-05 17:30:26 +0200
commit2511aefac05135ee10c5e7a54a5988fd66503d57 (patch)
treeba38bb5f2e0a48f06b3ea2c3622011a20f58733c /Dockerfile
parent4978065c9c42e78669848c5a749f4d230ffcc465 (diff)
downloadtinygo-2511aefac05135ee10c5e7a54a5988fd66503d57.tar.gz
tinygo-2511aefac05135ee10c5e7a54a5988fd66503d57.zip
docker: perform a hard submodule reset after having moved the git repos directory
Signed-off-by: Ron Evans <[email protected]>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile5
1 files changed, 4 insertions, 1 deletions
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 && \