There was an error while loading. Please reload this page.
1 parent 5de6ecd commit 352a161Copy full SHA for 352a161
1 file changed
lib/rbs/collection/config/lockfile.rb
@@ -82,7 +82,9 @@ def check_rbs_availability!
82
raise CollectionNotAvailable unless meta_path.exist?
83
raise CollectionNotAvailable unless library_data(gem) == YAML.load(meta_path.read)
84
when Sources::Local
85
- raise CollectionNotAvailable unless fullpath.join(gem[:name], gem[:version]).symlink?
+ installed_path = fullpath.join(gem[:name], gem[:version])
86
+ source_path = source.full_path.join(gem[:name], gem[:version])
87
+ raise CollectionNotAvailable unless installed_path.symlink? && File.identical?(installed_path, source_path)
88
end
89
90
0 commit comments