Skip to content

Commit 8f381cd

Browse files
authored
Merge pull request #11499 from pfmoore/nox_comment
Add a warning comment to the vendoring session in noxfile
2 parents 569d0d7 + 08b7a10 commit 8f381cd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

noxfile.py

+7
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,13 @@ def lint(session: nox.Session) -> None:
172172
session.run("pre-commit", "run", *args)
173173

174174

175+
# NOTE: This session will COMMIT upgrades to vendored libraries.
176+
# You should therefore not run it directly against `main`. If you
177+
# do (assuming you started with a clean main), you can run:
178+
#
179+
# git checkout -b vendoring-updates
180+
# git checkout main
181+
# git reset --hard origin/main
175182
@nox.session
176183
def vendoring(session: nox.Session) -> None:
177184
session.install("vendoring~=1.2.0")

0 commit comments

Comments
 (0)