Skip to content

Commit 89a756b

Browse files
committed
🔧 Fix definition of target bosh-release
1 parent 3ba4bd3 commit 89a756b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Makefile

+5-2
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,11 @@ spec-test:
300300
bundle exec rspec
301301

302302
.PHONY: bosh-release
303-
bosh-release: go-mod-tidy go-mod-vendor scheduler db build/autoscaler-test.tgz
304-
build/autoscaler-test.tgz:
303+
bosh-release: build/autoscaler-test.tgz
304+
# 🚸 In the next line, the order of the dependencies is important. Generated code needs to be
305+
# already there for `go-mod-tidy` to work. See additional comment for that target in
306+
# ./src/autoscaler/Makefile.
307+
build/autoscaler-test.tgz: build_all go-mod-tidy go-mod-vendor
305308
@echo " - building bosh release into build/autoscaler-test.tgz"
306309
@mkdir -p build
307310
@bosh create-release --force --timestamp-version --tarball=build/autoscaler-test.tgz

0 commit comments

Comments
 (0)