diff --git a/Library/Homebrew/cask/dsl/preflight.rb b/Library/Homebrew/cask/dsl/preflight.rb index d1f0e57098..79d2a63ba8 100644 --- a/Library/Homebrew/cask/dsl/preflight.rb +++ b/Library/Homebrew/cask/dsl/preflight.rb @@ -1,6 +1,8 @@ # typed: strict # frozen_string_literal: true +require "cask/staged" + module Cask class DSL # Class corresponding to the `preflight` stanza. diff --git a/Library/Homebrew/cask/installer.rb b/Library/Homebrew/cask/installer.rb index ed69a5f5ce..c0417e311d 100644 --- a/Library/Homebrew/cask/installer.rb +++ b/Library/Homebrew/cask/installer.rb @@ -7,7 +7,6 @@ require "utils/topological_hash" require "cask/config" require "cask/download" -require "cask/staged" require "cask/quarantine" require "cgi" @@ -20,12 +19,6 @@ module Cask extend T::Sig extend Predicable - # TODO: it is unwise for Cask::Staged to be a module, when we are - # dealing with both staged and unstaged casks here. This should - # either be a class which is only sometimes instantiated, or there - # should be explicit checks on whether staged state is valid in - # every method. - include Staged def initialize(cask, command: SystemCommand, force: false, skip_cask_deps: false, binaries: true, verbose: false,