Skip to content

Commit 4017d33

Browse files
committed
fix: add GeneratedCompletion to installer T.cast union types
The cask installer's install_phase and uninstall_phase methods use T.cast with an explicit union of artifact types. GeneratedCompletion was missing, causing a runtime T.cast error during cask installation.
1 parent 130008c commit 4017d33

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Library/Homebrew/cask/installer.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ def install_artifacts(predecessor: nil)
333333
artifact,
334334
T.any(
335335
Artifact::AbstractFlightBlock,
336+
Artifact::GeneratedCompletion,
336337
Artifact::Installer,
337338
Artifact::KeyboardLayout,
338339
Artifact::Mdimporter,
@@ -600,6 +601,7 @@ def uninstall_artifacts(clear: false, successor: nil)
600601
artifact,
601602
T.any(
602603
Artifact::AbstractFlightBlock,
604+
Artifact::GeneratedCompletion,
603605
Artifact::KeyboardLayout,
604606
Artifact::Moved,
605607
Artifact::Qlplugin,

0 commit comments

Comments
 (0)