mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-19 12:04:03 +00:00
docker: perform a hard submodule reset after having moved the git repos directory
Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
+4
-1
@@ -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
|
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/ && \
|
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/ && \
|
RUN cd /go/src/github.com/tinygo-org/tinygo/ && \
|
||||||
dep ensure --vendor-only && \
|
dep ensure --vendor-only && \
|
||||||
|
|||||||
Reference in New Issue
Block a user