Merge pull request #13546 from apainintheneck/remove-staged-from-cask

cask/installer.rb: stop including Staged module
This commit is contained in:
Kevin 2022-08-02 18:29:20 -07:00 committed by GitHub
commit ba7e146eef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 7 deletions

View File

@ -1,6 +1,8 @@
# typed: strict
# frozen_string_literal: true
require "cask/staged"
module Cask
class DSL
# Class corresponding to the `preflight` stanza.

View File

@ -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,