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

Implement read-only conda resolver. #10810

Merged
merged 1 commit into from
Jan 10, 2021

Conversation

jmchilton
Copy link
Member

No description provided.

@mvdbeek
Copy link
Member

mvdbeek commented Nov 27, 2020

@@ -240,9 +241,16 @@ class InstallableDependencyResolver(metaclass=ABCMeta):
""" Mix this into a ``DependencyResolver`` and implement to indicate
the dependency resolver can attempt to install new dependencies.
"""
read_only = False
Copy link
Member

Choose a reason for hiding this comment

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

Given that the presence of the install_dependency method or inheriting from InstallableDependencyResolver is not going to be a reliable indication of the resolver's ability to install dependencies any more, I suggest to merge this class into DependencyResolver.

Also, these following 2 lines need to be updated any way to check for read_only instead of using hasattr:

https://github.com/galaxyproject/galaxy/blob/dev/lib/galaxy/tool_util/deps/views.py#L147 (resolver.disabled should probably also checked here, raising a different exception)

https://github.com/galaxyproject/galaxy/blob/dev/lib/galaxy/tool_util/deps/views.py#L201

@mvdbeek mvdbeek modified the milestones: 21.01, 21.05 Jan 7, 2021
@mvdbeek
Copy link
Member

mvdbeek commented Jan 7, 2021

Pushing this because of the outstanding comment

@jmchilton
Copy link
Member Author

I continue to prefer this version, but I have addressed the comment with a separate implementation in #10822.

I've rebased both versions and attempted to fix the test error in the other version.

@jmchilton jmchilton merged commit 22aa23e into galaxyproject:dev Jan 10, 2021
@nsoranzo nsoranzo deleted the conda_readonly branch January 11, 2021 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants