From 8eca0801208e7fe63778146b26d07ab37f6ad94b Mon Sep 17 00:00:00 2001 From: Guilherme Cassolato Date: Wed, 9 Nov 2022 10:16:08 +0100 Subject: [PATCH] fix: use git https protocol Due to `lua_modules` make target invoking `rover lock` command before `translate_git_protocol` (see #1320), commonly used targets like `dependencies` often fail with a `Connection refused` error. Reported in #1375. --- .gitignore | 1 + Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index cbd5fc51f..9cb4b745b 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ tmp/benchmark/ .cpanm /vendor/cache /tmp/ +.gitconfig diff --git a/Makefile b/Makefile index dc8a667d6..d1586798f 100644 --- a/Makefile +++ b/Makefile @@ -216,7 +216,7 @@ $(GATEWAY_CONTEXT)/Roverfile.lock : $(GATEWAY_CONTEXT)/Roverfile $(GATEWAY_CONTE translate_git_protocol: @git config --global url.https://github.com/.insteadOf git://github.com/ -lua_modules: $(ROVER) $(GATEWAY_CONTEXT)/Roverfile.lock translate_git_protocol +lua_modules: $(ROVER) translate_git_protocol $(GATEWAY_CONTEXT)/Roverfile.lock # This variable is to skip issues with openssl 1.1.1 # https://github.com/wahern/luaossl/issues/175 EXTRA_CFLAGS="-DHAVE_EVP_KDF_CTX=1" $(ROVER) install --roverfile=$(GATEWAY_CONTEXT)/Roverfile > /dev/null