mirror of https://github.com/docker/docs.git
ci: fix typo in module vendoring
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
parent
30a63a80f9
commit
c867a95b4a
|
@ -51,8 +51,9 @@ RUN htmltest
|
||||||
FROM build-base as update-modules
|
FROM build-base as update-modules
|
||||||
ARG MODULE
|
ARG MODULE
|
||||||
RUN <<"EOT"
|
RUN <<"EOT"
|
||||||
|
set -ex
|
||||||
if [ -n "$MODULE" ]; then
|
if [ -n "$MODULE" ]; then
|
||||||
go mod edit -dropdreplace ${MODULE/@*/}
|
go mod edit -dropreplace ${MODULE/@*/}
|
||||||
hugo mod get ${MODULE}
|
hugo mod get ${MODULE}
|
||||||
go mod edit -replace ${MODULE/@*/}=${MODULE};
|
go mod edit -replace ${MODULE/@*/}=${MODULE};
|
||||||
else \
|
else \
|
||||||
|
|
Loading…
Reference in New Issue