Skip to content

Commit

Permalink
fix: use .tmp in -i flag for sed command in upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Soban Javed committed Oct 4, 2023
1 parent 41c9131 commit 161c129
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ upgrade: piptools $(COMMON_CONSTRAINTS_TXT) ## update the requirements/*.txt fil
# This is a temporary solution to override the real common_constraints.txt
# In edx-lint, until the pyjwt constraint in edx-lint has been removed.
# See BOM-271 for more details.
sed -i '' 's/Django<4.0//g' requirements/common_constraints.txt
sed -i '' 's/django-simple-history==3.0.0//g' requirements/common_constraints.txt
sed -i.tmp 's/Django<4.0//g' requirements/common_constraints.txt
sed -i.tmp 's/django-simple-history==3.0.0//g' requirements/common_constraints.txt
# Make sure to compile files after any other files they include!
pip-compile --upgrade --rebuild --allow-unsafe -o requirements/pip.txt requirements/pip.in
pip-compile --upgrade -o requirements/pip-tools.txt requirements/pip-tools.in
Expand Down

0 comments on commit 161c129

Please sign in to comment.