Skip to content

Commit c33a69e

Browse files
authored
Improves deps-peru with peru.yaml->.peru/lastimports association.
1 parent e96089e commit c33a69e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,13 @@ deps-brew: ## Installs development dependencies from Homebrew
249249
echo "$(COLOR_RED)Run your make command again after adding the above so that $(PYENV) is available.$(COLOR_RESET)"
250250

251251
.PHONY: deps-peru
252-
deps-peru: $(PERU_CONFIG) ## Installs dependencies from Peru
253-
$(PERU) sync
252+
deps-peru: .peru/lastimports ## Installs dependencies from Peru
254253
@echo "$(COLOR_GREEN)All Peru modules sync'd!$(COLOR_RESET)"
255254

255+
# peru outputs this file as a hash of the state of peru.yaml
256+
.peru/lastimports: $(PERU_CONFIG)
257+
$(PERU) sync --verbose --jobs $(shell nproc)
258+
256259
.PHONY: deps-ci
257260
deps-ci: poetry-install $(DEPS_TASKS_IF_PERU_CONFIG) ## Install CI check and test dependencies (assumes Python & Poetry already present in env)
258261
@echo "$(COLOR_GREEN)All CI dependencies installed!$(COLOR_RESET)"

0 commit comments

Comments
 (0)