feat: add --oss-host CLI option for custom OSS Index URL#159
Open
feat: add --oss-host CLI option for custom OSS Index URL#159
Conversation
- Add --oss-host command-line argument to 'jake ddt' - Pass host parameter to OssIndex from ossindex-lib - CLI argument takes precedence over config file - Add test for CLI argument presence - Update documentation with usage examples This feature enables users to point to custom OSS Index instances for testing, enterprise deployments, or compliance requirements. Note: Requires ossindex-lib with host parameter support (pending release)
|
Thanks for the contribution. Unfortunately some of your commits don't meet our standards. All commits must be signed and have author information set. The commits to review are:
See Signed Commits. |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
This PR adds the
--oss-hostcommand-line option tojake ddt, enabling users to specify a custom OSS Index host URL for testing, enterprise deployments, or compliance requirements.This PR depends on ossindex-lib gaining host parameter support.
pyproject.tomlto require the new minimum version of ossindex-libDo not merge this PR until the ossindex-lib changes are released.
Changes
Code Changes
jake/command/oss.py: Added--oss-hostCLI argumentOssIndex()constructorjake/command/oss.py: Updated OssIndex instantiation to accept custom hostTest Changes
tests/test_jake.py: Addedtest_jake_ddt_help_includes_oss_host--oss-hostappears in help textDocumentation Changes
README.md: Updated usage documentation to include--oss-hostdocs/usage.rst: Updated usage examplesdocs/configuration.rst: Added "Custom OSS Index Host" sectionConfiguration Methods
Users can configure a custom OSS Index host in three ways:
$HOME/.oss-index.config):https://ossindex.sonatype.orgBackward Compatibility
All changes are backward compatible. Existing usage continues to work without modification.
Testing
Use Cases
Related