From 08f29d346dc4f5f00e5669ba488880f7632c231f Mon Sep 17 00:00:00 2001 From: JimmyYang20 Date: Thu, 11 Aug 2022 09:37:31 +0800 Subject: [PATCH] Fix the bug: download cc multiple times in buildx Signed-off-by: JimmyYang20 --- hack/lib/buildx.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hack/lib/buildx.sh b/hack/lib/buildx.sh index 57e6d37b3..35b38ff45 100644 --- a/hack/lib/buildx.sh +++ b/hack/lib/buildx.sh @@ -34,6 +34,9 @@ sedna::buildx::prepare_env() { docker buildx create --use --name $builder_instance --driver docker-container fi docker buildx use $builder_instance + + # go speed tag with CGO_ENABLED=1 and alpine image + _speed_buildx_for_cgo_alpine_ } _speed_buildx_for_go_() { @@ -101,8 +104,6 @@ sedna::buildx:generate-speed-dockerfile() { # go speed tag _speed_buildx_for_go_ - # go speed tag with CGO_ENABLED=1 and alpine image - _speed_buildx_for_cgo_alpine_ ) local base_cmds='