Skip to content

Commit b11c444

Browse files
committed
Get code generation files from broker repository
Fixes #1486
1 parent 4b27d84 commit b11c444

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

Makefile

+5-8
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,12 @@ deps: $(DEPS_DIR)/rabbitmq_codegen
2222
dist: clean
2323
$(MVN) $(MVN_FLAGS) -DskipTests=true -Dmaven.javadoc.failOnError=false package javadoc:javadoc
2424

25-
$(DEPS_DIR)/rabbit:
26-
git clone https://github.com/rabbitmq/rabbitmq-server.git $@
27-
$(MAKE) -C $@ fetch-deps DEPS_DIR="$(abspath $(DEPS_DIR))"
28-
29-
$(DEPS_DIR)/rabbitmq_ct_helpers:
30-
git clone https://github.com/rabbitmq/rabbitmq-ct-helpers.git "$@"
31-
3225
$(DEPS_DIR)/rabbitmq_codegen:
33-
git clone https://github.com/rabbitmq/rabbitmq-codegen.git "$@"
26+
git clone -n --depth=1 --filter=tree:0 https://github.com/rabbitmq/rabbitmq-server.git $(DEPS_DIR)/rabbitmq-server
27+
git -C $(DEPS_DIR)/rabbitmq-server sparse-checkout set --no-cone deps/rabbitmq_codegen
28+
git -C $(DEPS_DIR)/rabbitmq-server checkout
29+
cp -r $(DEPS_DIR)/rabbitmq-server/deps/rabbitmq_codegen "$@"
30+
rm -rf $(DEPS_DIR)/rabbitmq-server
3431

3532
tests: deps
3633
$(MVN) $(MVN_FLAGS) verify

0 commit comments

Comments
 (0)