Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/rbs/collection/config/lockfile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ def check_rbs_availability!
raise CollectionNotAvailable unless meta_path.exist?
raise CollectionNotAvailable unless library_data(gem) == YAML.load(meta_path.read)
when Sources::Local
raise CollectionNotAvailable unless fullpath.join(gem[:name], gem[:version]).symlink?
installed_path = fullpath.join(gem[:name], gem[:version])
source_path = source.full_path.join(gem[:name], gem[:version])
raise CollectionNotAvailable unless installed_path.symlink? && File.identical?(installed_path, source_path)
end
end
end
Expand Down
Loading