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

Fix unexpected CollectionNotAvailable without gems from git source #795

Conversation

pocke
Copy link
Member

@pocke pocke commented Sep 16, 2021

This PR fixes the unexpected CollectionNotAvailable error when the lockfile only has non-git source gems.

Currently the collection installer makes .gem_rbs_collection directory if git source gems exist. And Config#check_rbs_availability! method checks the directory existence. Then the error is raised.

This patch makes sure that the directory is created by rbs collection install even if git source gem does not exist.

@pocke pocke self-assigned this Sep 16, 2021
@pocke pocke changed the title Fix unexpected CollectionNotAvailable without gems from git source [WIP] Fix unexpected CollectionNotAvailable without gems from git source Sep 16, 2021
@pocke pocke force-pushed the Fix_unexpected_CollectionNotAvailable_without_gems_from__git__source branch from 87d21d1 to 34adcf5 Compare September 17, 2021 10:32
@pocke pocke changed the title [WIP] Fix unexpected CollectionNotAvailable without gems from git source Fix unexpected CollectionNotAvailable without gems from git source Sep 17, 2021
@pocke pocke merged commit 08ed4b7 into ruby:master Sep 17, 2021
@pocke pocke deleted the Fix_unexpected_CollectionNotAvailable_without_gems_from__git__source branch September 17, 2021 10:42
@pocke pocke added the bug Something isn't working label Sep 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

1 participant