Skip to content

Commit

Permalink
fix: typo in the error message (#1004)
Browse files Browse the repository at this point in the history
The proper format in requirements.txt is `==`, not `=`.
  • Loading branch information
artemrys authored Jan 10, 2024
1 parent 7bc5a35 commit 312c8be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion splunk_add_on_ucc_framework/install_python_libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def install_os_dependent_libraries(
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[{os_lib.name}].dependencies = True
2. Add {os_lib.name}={os_lib.version} in requirements.txt
2. Add {os_lib.name}=={os_lib.version} in requirements.txt
"""
)
raise CouldNotInstallRequirements
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_install_python_libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def test_install_libraries_version_mismatch(
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[cryptography].dependencies = True
2. Add cryptography=41.0.5 in requirements.txt
2. Add cryptography==41.0.5 in requirements.txt
"""

assert version_mismatch_log in caplog.messages
Expand Down

0 comments on commit 312c8be

Please sign in to comment.