-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: buildtime version check for os-dependentLibraries (#981)
### Summary - Fixes a case making it possible to have different os lib versions in requirements.txt and globalConfig.json. Added log entry on version mismatch, example: ``` INFO: Installing os-dependentLibraries. INFO: Executing: python3 -m pip show --version wrong_lib_name | grep "Version: 1.2.3" ERROR: Command (python3 -m pip show --version wrong_lib_name | grep "Version: 1.2.3") returned True status code ERROR: OS dependent library wrong_lib_name = 1.2.3 SHOULD be defined in requirements.txt. When the os dependent library is installed without its dependencies it has to be listed in requirements.txt. Possible solutions, either: 1. os-dependentLibraries.name[wrong_lib_name].dependencies = True 2. Add wrong_lib_name=1.2.3 in requirements.txt ``` - Cleanup the installed os libs from the ucc_lib_target, making deployment package smaller. - `splunktaucclib` presence is checked via `pip`. Check is performed after `splunk_add_on_ucc_framework.install_python_libraries.install_libraries` is called. Depends on env`PYTHONPATH` to be set up to TA installation target (example: `/Users/dkvashnin/splunk/addonfactory-ucc-generator/output/Splunk_TA_UCCExample/lib`) as `pip show` doesn't accept `--target` option like `pip install` does.
- Loading branch information
1 parent
b229f1a
commit cbe923d
Showing
5 changed files
with
212 additions
and
67 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.