diff options
author | Pavlo Strokov <pstrokov@gitlab.com> | 2021-05-24 13:27:56 +0300 |
---|---|---|
committer | Pavlo Strokov <pstrokov@gitlab.com> | 2021-05-27 17:06:12 +0300 |
commit | 6d0661ae39285390cc3b03c6847b85a442c93364 (patch) | |
tree | 9179260a3ecdcc0a003200e61f2fd6c53bef866c /Makefile | |
parent | 6e58da454633a53c86d14a59587ee7a6a9d11031 (diff) |
Import path re-writer
The path re-writer is the go script to re-write imports
in the go source code files, proto files and go.mod file.
The script accepts path to the project dir where go.mod file
locates, current module version and desired module version.
Upgrading a module requires re-generating the gRPC stubs
from proto file that is why the code of the path re-writer
script is imported in a new 'upgrade-module' task which covers
that need.
Part of: https://gitlab.com/gitlab-org/gitaly/-/issues/3177
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -341,6 +341,11 @@ smoke-test: TEST_PACKAGES := ${SOURCE_DIR}/internal/gitaly/rubyserver smoke-test: all rspec $(call run_go_tests) +.PHONY: upgrade-module +upgrade-module: + ${Q}go run ${SOURCE_DIR}/_support/module-updater/main.go -dir . -from=${FROM_MODULE} -to=${TO_MODULE} + ${Q}${MAKE} proto + .PHONY: git git: ${GIT_INSTALL_DIR}/bin/git |