install internal dependencies before calling post import blocks #352
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@doudou I wanted your thoughts before fixing the tests...
Post import blocks may have internal dependencies (i.e python activation code) so these must be installed before calling the blocks. I have delayed the processing of the blocks until all the packages have been processed so we can install the internal dependencies and call all the blocks at once afterward. I don't see issues.
The other possibility would be to leave the calling of post-import blocks alone and move the installation of internal dependencies to
Ops::Import#process_post_import_blocks
(would have to keep a cache to avoid callingManager#install
on the same packages more than once). That would mean potentially installing osdeps several times rather than installing all internal dependencies at once.What do you think?