Load dependencies on -r option also #1013
Merged
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.
This PR allows you to load dependency for standard libraries loaded with
-r
out of the box.Problem
rbs collection
is the manager of third-party gems' RBSs. It resolves dependencies of gems/stdlibs.But it requires defining the application dependency with
rbs_collection.yaml
. It means it doesn't resolve the dependencies on-r
.So, we needed to resolve the dependencies manually on
-r
.Solution
With this change, the dependencies are loaded automatically even if we use
-r
. It uses the same way asrbs collection
but for-r
.RBS-related tools do not need to care about this PR. The dependency will be resolved without any changes for the related tools such as typeprof.