Skip to content

Commit 3cb0d3d

Browse files
committed
relock_sample_apps make use of for loop
1 parent 008f738 commit 3cb0d3d

1 file changed

Lines changed: 9 additions & 15 deletions

File tree

Makefile

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,12 @@ replace_version:
8585
sed -i.bak "s/1.0-REPLACE-VERSION/$$version/g" aikido_zen/config.py
8686
rm aikido_zen/config.py.bak
8787

88-
# Re-locking sample apps
89-
relock_sample_apps: build
90-
cd sample-apps/django-mysql && poetry lock
91-
cd sample-apps/django-mysql-gunicorn && poetry lock
92-
cd sample-apps/django-postgres-gunicorn && poetry lock
93-
cd sample-apps/fastapi-postgres-uvicorn && poetry lock
94-
cd sample-apps/flask-mongo && poetry lock
95-
cd sample-apps/flask-mssql && poetry lock
96-
cd sample-apps/flask-mysql && poetry lock
97-
cd sample-apps/flask-mysql-uwsgi && poetry lock
98-
cd sample-apps/flask-postgres && poetry lock
99-
cd sample-apps/flask-postgres-xml && poetry lock
100-
cd sample-apps/quart-mongo && poetry lock
101-
cd sample-apps/quart-postgres-uvicorn && poetry lock
102-
cd sample-apps/starlette-postgres-uvicorn && poetry lock
88+
89+
90+
relock_sample_apps:
91+
@for f in sample-apps/**/; do \
92+
echo "Entering $$f"; \
93+
cd $$f && poetry lock; \
94+
cd ../../; \
95+
done
96+

0 commit comments

Comments
 (0)