Skip to content

Instantly share code, notes, and snippets.

@BenjaminHCCarr
Last active September 25, 2017 16:16
Show Gist options
  • Save BenjaminHCCarr/77666a8622812eed28b5d08757a654ad to your computer and use it in GitHub Desktop.
Save BenjaminHCCarr/77666a8622812eed28b5d08757a654ad to your computer and use it in GitHub Desktop.
Homebrew Cask install of subutai-tray debug
Formula subutai-tray.rb (have tried both subutai-tray.pkg and subutai-tray--latest.pkg)
----
cask 'subutai-tray' do
version :latest
sha256 :no_check
# cdn.subut.ai:8338/kurjun/rest/raw/ was verified as official when first introduced to the cask
url 'https://cdn.subut.ai:8338/kurjun/rest/raw/get?name=subutai-tray.pkg'
name 'Subutai Tray'
homepage 'https://subutai.io/'
pkg 'subutai-tray--latest.pkg'
end
----
tyr:~/Code/git/Mine/homebrew-cask/Casks (master) benc$ brew cask install --debug ./subutai-tray.rb
==> Hbc::Installer#install
==> Printing caveats
==> Hbc::Installer#fetch
==> Satisfying dependencies
==> Downloading
==> Downloading https://cdn.subut.ai:8338/kurjun/rest/raw/get?name=subutai-tray.pkg
######################################################################## 100.0%
==> Downloaded to -> /Users/benc/Library/Caches/Homebrew/Cask/subutai-tray--latest.pkg
==> Verifying download
==> Determining which verifications to run for Cask subutai-tray
==> Checking for verification class Hbc::Verify::Checksum
==> No checksum defined for Cask subutai-tray, skipping verification
==> 0 verifications defined
==> Installing Cask subutai-tray
==> Hbc::Installer#stage
==> Extracting primary container
==> Determining which containers to use based on filetype
==> Checking container class Hbc::Container::Pkg
==> Using container class Hbc::Container::Pkg for /Users/benc/Library/Caches/Homebrew/Cask/subutai-tray--latest.pkg
==> Executing: ["/usr/bin/ditto", "--", "/Users/benc/Library/Caches/Homebrew/Cask/subutai-tray--latest.pkg", "/usr/local/Caskroom/subutai-tray/latest/get"]
==> Creating metadata directory /usr/local/Caskroom/subutai-tray/.metadata/latest/20170925161201.531.
==> Creating metadata subdirectory /usr/local/Caskroom/subutai-tray/.metadata/latest/20170925161201.531/Casks.
==> Installing artifacts
==> Determining which artifacts are present in Cask subutai-tray
==> 1 artifact/s defined
subutai-tray.pkg (Pkg)
==> Installing artifact of class Hbc::Artifact::Pkg
==> Running installer for subutai-tray; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
==> Purging files for version latest of Cask subutai-tray
Error: pkg source file not found: 'subutai-tray.pkg'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/artifact/pkg.rb:39:in `run_installer'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/artifact/pkg.rb:30:in `install_phase'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/installer.rb:191:in `block in install_artifacts'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/installer.rb:183:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/installer.rb:183:in `install_artifacts'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/installer.rb:97:in `install'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/install.rb:19:in `block in run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/install.rb:13:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/install.rb:13:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb:35:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:97:in `run_command'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:167:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:131:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:8:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:95:in `<main>'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:172:in `exit'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:172:in `rescue in run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:155:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:131:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:8:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:95:in `<main>'
tyr:~/Code/git/Mine/homebrew-cask/Casks (master) benc$ brew cask install --debug ./subutai-tray.rb
==> Hbc::Installer#install
==> Printing caveats
==> Hbc::Installer#fetch
==> Satisfying dependencies
==> Downloading
==> Downloading https://cdn.subut.ai:8338/kurjun/rest/raw/get?name=subutai-tray.pkg
######################################################################## 100.0%
==> Downloaded to -> /Users/benc/Library/Caches/Homebrew/Cask/subutai-tray--latest.pkg
==> Verifying download
==> Determining which verifications to run for Cask subutai-tray
==> Checking for verification class Hbc::Verify::Checksum
==> No checksum defined for Cask subutai-tray, skipping verification
==> 0 verifications defined
==> Installing Cask subutai-tray
==> Hbc::Installer#stage
==> Extracting primary container
==> Determining which containers to use based on filetype
==> Checking container class Hbc::Container::Pkg
==> Using container class Hbc::Container::Pkg for /Users/benc/Library/Caches/Homebrew/Cask/subutai-tray--latest.pkg
==> Executing: ["/usr/bin/ditto", "--", "/Users/benc/Library/Caches/Homebrew/Cask/subutai-tray--latest.pkg", "/usr/local/Caskroom/subutai-tray/latest/get"]
==> Creating metadata directory /usr/local/Caskroom/subutai-tray/.metadata/latest/20170925161255.652.
==> Creating metadata subdirectory /usr/local/Caskroom/subutai-tray/.metadata/latest/20170925161255.652/Casks.
==> Installing artifacts
==> Determining which artifacts are present in Cask subutai-tray
==> 1 artifact/s defined
subutai-tray--latest.pkg (Pkg)
==> Installing artifact of class Hbc::Artifact::Pkg
==> Running installer for subutai-tray; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
==> Purging files for version latest of Cask subutai-tray
Error: pkg source file not found: 'subutai-tray--latest.pkg'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/artifact/pkg.rb:39:in `run_installer'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/artifact/pkg.rb:30:in `install_phase'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/installer.rb:191:in `block in install_artifacts'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/installer.rb:183:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/installer.rb:183:in `install_artifacts'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/installer.rb:97:in `install'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/install.rb:19:in `block in run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/install.rb:13:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/install.rb:13:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb:35:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:97:in `run_command'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:167:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:131:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:8:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:95:in `<main>'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:172:in `exit'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:172:in `rescue in run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:155:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:131:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:8:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:95:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment