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

Always get requirements from master while installing from a fork but not from a different repository #9039

Merged
merged 2 commits into from
Sep 27, 2023

Conversation

ptormene
Copy link
Member

Otherwise we would have a mismatch e.g. when running tests from another gem repository installing the engine with python install.py user (in that case we need to get the requirements from the latest stable release instead)

@ptormene ptormene added the bug label Sep 26, 2023
@ptormene ptormene added this to the Engine 3.18.0 milestone Sep 26, 2023
@ptormene ptormene self-assigned this Sep 26, 2023
install.py Outdated
if repository != 'gem/oq-engine':
repository_owner, repository_name = repository.split('/')
# in forks of oq-engine, always read requirements from master
if (repository_owner != 'gem' and repository_name == 'oq-engine'):
Copy link
Contributor

Choose a reason for hiding this comment

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

The parenthesis are not needed

Copy link
Contributor

Choose a reason for hiding this comment

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

Acc! I see a problem here!
I want the requirements to be read from OUR master, not from their master that could be outdated.

Copy link
Member Author

Choose a reason for hiding this comment

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

According with this https://github.com/gem/oq-engine/blob/master/install.py#L393 I believe requirements are actually read from our master.

@ptormene ptormene merged commit 5f2a424 into master Sep 27, 2023
5 checks passed
@ptormene ptormene deleted the refine-requirements branch September 27, 2023 07:14
@micheles micheles mentioned this pull request Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants