mirror of
https://github.com/docker/docs.git
synced 2026-03-27 06:18:55 +07:00
go.mod: use tool directive and no replace
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -93,8 +93,6 @@ RUN <<"EOT"
|
||||
set -ex
|
||||
if [ -n "$MODULE" ]; then
|
||||
hugo mod get ${MODULE}
|
||||
RESOLVED=$(cat go.mod | grep -m 1 "${MODULE/@*/}" | awk '{print $1 "@" $2}')
|
||||
go mod edit -replace "${MODULE/@*/}=${RESOLVED}";
|
||||
else
|
||||
echo "no module set";
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user