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

Check system requirements if the package is in the local cache #3616

Closed
wants to merge 1 commit into from

Conversation

lasote
Copy link
Contributor

@lasote lasote commented Sep 25, 2018

Closes #2262

Changelog: Bugfix: Check if the system_requirements() have to be executed even when the package is retrieved from the local cache.

@lasote lasote added this to the 1.8 milestone Sep 25, 2018
@ghost ghost assigned lasote Sep 25, 2018
@ghost ghost added the stage: review label Sep 25, 2018
@danimtb danimtb assigned memsharded and unassigned lasote Sep 27, 2018
@@ -319,6 +319,8 @@ def _handle_node_cache(self, node, package_id, keep_build, processed_package_ref
self._registry.set_ref(conan_ref, node.binary_remote.name)
elif node.binary == BINARY_CACHE:
output.success('Already installed!')
_handle_system_requirements(conan_file, package_ref, self._client_cache,
Copy link
Member

Choose a reason for hiding this comment

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

This shouldn't be done here. System requirements are installed:

  • On download of packages
  • On build

Sucessive installations shouldn't install them again, and it can make installing the deps graph very slow for already cached deps.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, it won't install them again if the system reqs folder is already there. But it nicely covers the case where the user wants to force the install by removing the folder.

Copy link
Member

Choose a reason for hiding this comment

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

It seems a very corner case for me, to cover the case where someone enters the conan cache and removes there manually some folder. The problem I see is that this could increase an order of magnitude the otherwise no-op "conan install" command when the dependencies are already installed in the cache.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I could agree with that. If it causes some minimal issue then we should avoid it. Then we should go to the issue, to comment that this is not a valid possibility and close it.

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.

Re-run system_requirements()
3 participants