You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .githooks/no-nexus.sh
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,22 @@
1
1
#! /usr/bin/env bash
2
2
3
-
sed -i'' \
3
+
# This script ensures that the poetry.lock file does not contain references to the internal Indeed Nexus PyPI repository.
4
+
# It is used as a git hook to automatically remove the [package.source] section for Nexus from poetry.lock.
5
+
# This is necessary to ensure the lock file is portable and open-source friendly.
6
+
# The script uses gsed to remove the Nexus source block and any resulting empty lines, then checks if any changes were made.
7
+
# If Nexus references are found and removed, the script exits with 1 to prevent the commit, so we can stage the changes made by the script before committing again.
0 commit comments