Skip to content

Commit e640fd0

Browse files
costajohntclaude
andcommitted
keg: fix Pathname type mismatch in LinkageCacheStore call
Pass `path.to_s` instead of `path` (a Pathname) to `LinkageCacheStore.new`, matching the pattern used in `linkage_checker.rb`. The sig on `initialize` correctly requires a String since the value is used as a JSON-serializable database key. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9c2c961 commit e640fd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Library/Homebrew/keg.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def uninstall(raise_failures: false)
315315
CacheStoreDatabase.use(:linkage) do |db|
316316
break unless db.created?
317317

318-
LinkageCacheStore.new(path, db).delete!
318+
LinkageCacheStore.new(path.to_s, db).delete!
319319
end
320320

321321
FileUtils.rm_r(path)

0 commit comments

Comments
 (0)