From 161c129d6201cd5339a051eae69ae07a7f723c73 Mon Sep 17 00:00:00 2001 From: Muhammad Soban Javed Date: Wed, 4 Oct 2023 19:23:37 +0500 Subject: [PATCH] fix: use .tmp in -i flag for sed command in upgrade --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0a85ea9b..18316a9c 100644 --- a/Makefile +++ b/Makefile @@ -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