Skip to content

Commit f466ced

Browse files
committed
build: the right way to force doc_upgrade to upgrade
1 parent c0cf2ad commit f466ced

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Makefile

+1-4
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,8 @@ _upgrade:
117117

118118
doc_upgrade: export CUSTOM_COMPILE_COMMAND=make doc_upgrade
119119
doc_upgrade: $(DOCBIN) ## Update the doc/requirements.pip file
120-
@# I don't understand why, but pip-tools won't update versions in this
121-
@# .pip file unless I remove it first:
122-
rm doc/requirements.pip
123120
$(DOCBIN)/pip install -q -r requirements/pip-tools.pip
124-
$(DOCBIN)/$(PIP_COMPILE) -o doc/requirements.pip doc/requirements.in
121+
$(DOCBIN)/$(PIP_COMPILE) --upgrade -o doc/requirements.pip doc/requirements.in
125122

126123
diff_upgrade: ## Summarize the last `make upgrade`
127124
@# The sort flags sort by the package name first, then by the -/+, and

0 commit comments

Comments
 (0)