Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add fail message to roles that are not available as oss version #338

Merged
merged 6 commits into from
Oct 21, 2024

Conversation

christoph2497
Copy link
Member

To prevent the a strange error message that is not easy to understand for the basic user I added a check that fails for specific roles when the release type and version are not available for the specific role.

@christoph2497 christoph2497 requested a review from widhalmt August 8, 2024 13:30
Copy link
Member

@widhalmt widhalmt left a comment

Choose a reason for hiding this comment

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

Please start products with a capital letter in messages. e.g. "Kibana" instead of kibana.

And please refer to the issue you're trying to fix by using "closing keywords". This has to be in the first description of the PR. When the PR is merged, the Issue is automatically closed.
e.g.
fixes #333

There are several ways of installing Python modules on a system. We
can't make safe assumptions about the system where the collection is
used.

Possible problems:
* Modules available via package manager can be too old
* Python could be entirely managed via package manager and pip wouldn't
break that
* Pip could be installed in different ways

This change will do the following:

* Install `pip` via package manager if a new variable is set
* Try to install modules via pip
* If that fails because Python is managed via package manager, try
installing them via package manager
* One of the above methods should be successful but you still might end
up with modules which are too old to work
* If that's the case you can force the installation via pip and break
the managed Python installation

fixes #334
Thanks, @ivareri for pointing them out!

fixes #339
Copy link
Member

@widhalmt widhalmt left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution!

@widhalmt widhalmt added this pull request to the merge queue Oct 21, 2024
Merged via the queue into main with commit 15ad2ea Oct 21, 2024
8 checks passed
@widhalmt widhalmt deleted the fix/preventUnsupportedVersions branch October 21, 2024 11:58
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