Skip to content

Update no-nexus.sh script to use gsed#12

Merged
samuel27m merged 2 commits intomainfrom
jira/scacador/NOBUG
Jun 16, 2025
Merged

Update no-nexus.sh script to use gsed#12
samuel27m merged 2 commits intomainfrom
jira/scacador/NOBUG

Conversation

@samuel27m
Copy link
Member

Update no-nexus.sh script to use gsed

@samuel27m
Copy link
Member Author

@samuel27m samuel27m requested a review from N-give June 13, 2025 18:02

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similar to my comment on the other PR, could you add a comment section explaining what this githook is needed for and what it does

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added now:

# This script ensures that the poetry.lock file does not contain references to the internal Indeed Nexus PyPI repository.
# It is used as a git hook to automatically remove the [package.source] section for Nexus from poetry.lock.
# This is necessary to ensure the lock file is portable and open-source friendly.
# The script uses gsed to remove the Nexus source block and any resulting empty lines, then checks if any changes were made.
# 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.

@samuel27m samuel27m merged commit b7c3f01 into main Jun 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants