Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSami Hiltunen <shiltunen@gitlab.com>2022-07-27 12:27:48 +0300
committerSami Hiltunen <shiltunen@gitlab.com>2022-07-27 12:27:48 +0300
commit973fc1f2b985c808e442792238f2cddcc53005fe (patch)
tree934dfed186634b7b079a68a5bd1de5ff1063c078
parent2150f1e92b4473bede670d2ac32d9b9f7e4d17a9 (diff)
parent5ff293bf6c1098900974b0e3e5e619f90d9d56d7 (diff)
Merge branch 'smh-remove-legacy-go-mod' into 'master'
Remove legacy go.mod and go.sum files from _build directory Closes #4381 See merge request gitlab-org/gitaly!4758
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 06cec69a8..5c0addbfb 100644
--- a/Makefile
+++ b/Makefile
@@ -599,8 +599,15 @@ ${BUILD_DIR}/bin/%: ${BUILD_DIR}/intermediate/% | ${BUILD_DIR}/bin
install "$<" "$@"; \
fi
+# The build process left a go.mod and go.sum file in ${BUILD_DIR} in the past. This causes problems these days
+# when attempting to embed the auxiliary binaries into Gitaly binary as they are considered to be in a different
+# module due to this. Remove the legacy files.
+.PHONY: remove-legacy-go-mod
+remove-legacy-go-mod:
+ ${Q}rm -f $(addprefix ${BUILD_DIR}/, go.mod go.sum)
+
${BUILD_DIR}/intermediate/gitaly: GO_BUILD_TAGS = ${SERVER_BUILD_TAGS}
-${BUILD_DIR}/intermediate/gitaly: ${GITALY_PACKED_EXECUTABLES}
+${BUILD_DIR}/intermediate/gitaly: remove-legacy-go-mod ${GITALY_PACKED_EXECUTABLES}
${BUILD_DIR}/intermediate/praefect: GO_BUILD_TAGS = ${SERVER_BUILD_TAGS}
${BUILD_DIR}/intermediate/gitaly-git2go-v15: GO_BUILD_TAGS = ${GIT2GO_BUILD_TAGS}
${BUILD_DIR}/intermediate/gitaly-git2go-v15: libgit2