@@ -38,7 +38,7 @@ export GOWORK = off
3838$(shell mkdir -p target)
3939$(shell mkdir -p build)
4040
41- .DEFAULT_GOAL := build-all
41+ .DEFAULT_GOAL := build_all
4242
4343.PHONY : check-type
4444check-db_type :
@@ -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
@@ -370,7 +373,7 @@ deploy-autoscaler-bosh: db.java-libs go-mod-vendor scheduler.build
370373 echo " - deploying autoscaler"
371374 DEBUG=" ${DEBUG} " ${CI_DIR} /autoscaler/scripts/deploy-autoscaler.sh
372375deploy-cleanup :
373- ${CI_DIR} /autoscaler/scripts/cleanup-autoscaler.sh;
376+ ${CI_DIR} /autoscaler/scripts/cleanup-autoscaler.sh
374377
375378bosh-release-path := ./target/bosh-releases
376379prometheus-bosh-release-path := ${bosh-release-path}/prometheus
@@ -442,8 +445,11 @@ cleanup-autoscaler-deployments:
442445 @${CI_DIR} /autoscaler/scripts/cleanup-autoscaler-deployments.sh
443446
444447.PHONY : cf-login
445- cf-login : # # Login to OSS CF dev environment
446- @${CI_DIR} /autoscaler/scripts/cf-login.sh
448+ cf-login :
449+ @echo ' ⚠️ Please note that this login only works for cf and concourse,' \
450+ ' in spite of performing a login as well on bosh and credhub.' \
451+ ' The necessary changes to the environment get lost when make exits its process.'
452+ @${CI_DIR} /autoscaler/scripts/os-infrastructure-login.sh
447453
448454.PHONY : setup-performance
449455setup-performance : build-test-app
@@ -484,6 +490,7 @@ alerts-silence:
484490 ${CI_DIR} /autoscaler/scripts/silence_prometheus_alert.sh BOSHJobEphemeralDiskPredictWillFill ; \
485491 ${CI_DIR} /autoscaler/scripts/silence_prometheus_alert.sh BOSHJobUnhealthy ;
486492
493+
487494.PHONY : docker-login docker docker-image
488495docker-login : target/docker-login
489496target/docker-login :
@@ -493,7 +500,6 @@ docker-image: docker-login
493500 docker build -t ghcr.io/cloudfoundry/app-autoscaler-release-tools:latest ci/dockerfiles/autoscaler-tools
494501 docker push ghcr.io/cloudfoundry/app-autoscaler-release-tools:latest
495502
496-
497503validate-openapi-specs : $(wildcard ./api/* .openapi.yaml)
498504 for file in $^ ; do \
499505 redocly lint --extends=minimal --format=$(if $(GITHUB_ACTIONS ) ,github-actions,codeframe) " $$ {file}" ; \
0 commit comments