Skip to content

Instantly share code, notes, and snippets.

@iggyvolz
Created November 4, 2014 03:51
Show Gist options
  • Save iggyvolz/aa8b0210e911f0e8e405 to your computer and use it in GitHub Desktop.
Save iggyvolz/aa8b0210e911f0e8e405 to your computer and use it in GitHub Desktop.
Homebrew-Cask Atom Woes
$ brew cask install --debug atom
==> Initializing Taps
==> Creating directories
==> Loading Cask definitions
==> Translating 'atom' into a valid Cask source
==> Testing source class Cask::Source::URI
==> Testing source class Cask::Source::PathSlashRequired
==> Testing source class Cask::Source::TappedQualified
==> Testing source class Cask::Source::UntappedQualified
==> Testing source class Cask::Source::Tapped
==> Success! Using source class Cask::Source::Tapped
==> Resolved Cask URI or file source to '/usr/local/Library/Taps/caskroom/homebrew-cask/Casks/atom.rb'
==> Cask instance dumps in YAML:
==> Cask instance toplevel:
--- !ruby/object:Atom
title: atom
==> Cask instance method 'homepage':
--- http://atom.io
...
==> Cask instance method 'url':
--- !ruby/object:Cask::URL
uri: !ruby/object:URI::HTTPS
scheme: https
user:
password:
host: atom.io
port: 443
path: /download/mac
query:
opaque:
registry:
fragment:
parser:
user_agent:
cookies:
referer:
using:
revision:
trust_cert:
data:
==> Cask instance method 'appcast':
---
...
==> Cask instance method 'version':
--- :latest
...
==> Cask instance method 'license':
--- !ruby/object:Cask::DSL::License
value: :mit
==> Cask instance method 'tags':
---
...
==> Cask instance method 'sums':
--- :no_check
...
==> Cask instance method 'artifacts':
---
:link: !ruby/object:Set
hash:
? - Atom.app
: true
:binary: !ruby/object:Set
hash:
? - Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm
- :target: apm
: true
? - Atom.app/Contents/Resources/app/atom.sh
- :target: atom
: true
:after_install: !ruby/object:Set
hash:
!ruby/object:Proc {}: true
:zap: !ruby/object:Set
hash:
? :delete:
- ~/.atom/config.cson
- ~/.atom/init.coffee
- ~/.atom/keymap.cson
- ~/.atom/keymaps
- ~/.atom/packages
- ~/.atom/snippets.cson
- ~/.atom/styles.less
- ~/Library/Application Support/ShipIt_stderr.log
- ~/Library/Application Support/ShipIt_stdout.log
- ~/Library/Application Support/com.github.atom.ShipIt
- ~/Library/Caches/com.github.atom
- ~/Library/Preferences/com.github.atom.plist
:rmdir: ~/.atom/
: true
==> Cask instance method 'caveats':
--- []
==> Cask instance method 'depends_on_formula':
--- []
==> Cask instance method 'conflicts_with':
---
...
==> Cask instance method 'container_type':
---
...
==> Cask instance method 'gpg':
---
...
==> Cask::Installer.install
==> Printing caveats
==> Downloading
==> Downloading https://atom.io/download/mac
Already downloaded: /Library/Caches/Homebrew/atom-latest
==> Downloaded to -> /Library/Caches/Homebrew/atom-latest
==> Extracting primary container
==> Determining which containers to use based on filetype
==> Checking container class Cask::Container::Pkg
==> Checking container class Cask::Container::Ttf
==> Checking container class Cask::Container::Otf
==> Checking container class Cask::Container::Air
==> Checking container class Cask::Container::Cab
==> Executing: ["/usr/bin/file", "-Izb", "--", "#<Pathname:/Library/Caches/Homebrew/atom-latest>"]
==> Checking container class Cask::Container::Dmg
==> Executing: ["/usr/bin/hdiutil", "imageinfo", "#<Pathname:/Library/Caches/Homebrew/atom-latest>"]
==> Checking container class Cask::Container::SevenZip
==> Checking container class Cask::Container::Sit
==> Checking container class Cask::Container::Tar
==> Checking container class Cask::Container::Rar
==> Checking container class Cask::Container::Zip
==> Using container class Cask::Container::Zip for /Library/Caches/Homebrew/atom-latest
==> Executing: ["/usr/bin/ditto", "-xk", "--", "#<Pathname:/Library/Caches/Homebrew/atom-latest>", "#<Pathname:/opt/homebrew-cask/Caskroom/atom/latest>"]
==> Installing artifacts
==> Determining which artifacts are present in Cask atom
==> Checking for artifact class Cask::Artifact::BeforeBlock
==> Checking for artifact class Cask::Artifact::NestedContainer
==> Checking for artifact class Cask::Artifact::Installer
==> Checking for artifact class Cask::Artifact::App
==> Checking for artifact class Cask::Artifact::Artifact
==> Checking for artifact class Cask::Artifact::Colorpicker
==> Checking for artifact class Cask::Artifact::Pkg
==> Checking for artifact class Cask::Artifact::Prefpane
==> Checking for artifact class Cask::Artifact::Qlplugin
==> Checking for artifact class Cask::Artifact::Font
==> Checking for artifact class Cask::Artifact::Widget
==> Checking for artifact class Cask::Artifact::Service
==> Checking for artifact class Cask::Artifact::CaskroomOnly
==> Checking for artifact class Cask::Artifact::Binary
==> Checking for artifact class Cask::Artifact::InputMethod
==> Checking for artifact class Cask::Artifact::InternetPlugin
==> Checking for artifact class Cask::Artifact::ScreenSaver
==> Checking for artifact class Cask::Artifact::Uninstall
==> Checking for artifact class Cask::Artifact::AfterBlock
==> Checking for artifact class Cask::Artifact::Zap
==> 5 artifact/s defined
Cask::Artifact::App
Cask::Artifact::Artifact
Cask::Artifact::Binary
Cask::Artifact::AfterBlock
Cask::Artifact::Zap
==> Installing artifact of class Cask::Artifact::App
==> Symlinking App 'Atom.app' to '/Users/dvolz/Applications/Atom.app'
==> Executing: ["/bin/ln", "-hfs", "--", "#<Pathname:/opt/homebrew-cask/Caskroom/atom/latest/Atom.app>", "#<Pathname:/Users/dvolz/Applications/Atom.app>"]
==> Installing artifact of class Cask::Artifact::Artifact
==> Generic artifacting Artifact 'Atom.app' to '/Users/dvolz/Applications/Atom.a
==> Executing: ["/bin/ln", "-hfs", "--", "#<Pathname:/opt/homebrew-cask/Caskroom/atom/latest/Atom.app>", "#<Pathname:/Users/dvolz/Applications/Atom.app>"]
==> Installing artifact of class Cask::Artifact::Binary
==> Symlinking Binary 'apm' to '/usr/local/bin/apm'
==> Executing: ["/bin/ln", "-hfs", "--", "#<Pathname:/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm>", "#<Pathname:/usr/local/bin/apm>"]
==> Symlinking Binary 'atom.sh' to '/usr/local/bin/atom'
==> Executing: ["/bin/ln", "-hfs", "--", "#<Pathname:/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app/atom.sh>", "#<Pathname:/usr/local/bin/atom>"]
==> Adding com.apple.metadata:kMDItemAlternateNames metadata
==> Executing: ["/usr/bin/xattr", "-p", "com.apple.metadata:kMDItemAlternateNames", "#<Pathname:/usr/local/bin/atom>"]
==> Existing metadata is: ''
==> Executing: ["/usr/bin/xattr", "-w", "com.apple.metadata:kMDItemAlternateNames", "(\\\"atom\\\")", "#<Pathname:/usr/local/bin/atom>"]
==> Purging files for version latest of Cask atom
Error: Command failed to execute!
==> Failed command:
["/usr/bin/xattr", "-w", "com.apple.metadata:kMDItemAlternateNames", "(\\\"atom\\\")", "#<Pathname:/usr/local/bin/atom>"]
==> Output of failed command:
==> Exit status of failed command:
#<Process::Status: pid 1702 exit 1>
/usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/system_command.rb:54:in `_assert_success'
/usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/system_command.rb:33:in `run'
/usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/system_command.rb:39:in `run!'
/usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/artifact/symlinked.rb:30:in `add_altname_metadata'
/usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/artifact/symlinked.rb:13:in `create_filesystem_link'
/usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/artifact/symlinked.rb:64:in `link'
/usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/artifact/symlinked.rb:87:in `block in install_phase'
/usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/artifact/symlinked.rb:87:in `each'
/usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/artifact/symlinked.rb:87:in `install_phase'
/usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/artifact/binary.rb:3:in `install_phase'
/usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/installer.rb:98:in `block in install_artifacts'
/usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/installer.rb:96:in `each'
/usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/installer.rb:96:in `install_artifacts'
/usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/installer.rb:51:in `install'
/usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/cli/install.rb:20:in `block in install_casks'
/usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/cli/install.rb:17:in `each'
/usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/cli/install.rb:17:in `install_casks'
/usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/cli/install.rb:6:in `run'
/usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/cli.rb:81:in `run_command'
/usr/local/Cellar/brew-cask/0.46.0/rubylib/cask/cli.rb:121:in `process'
/usr/local/bin/brew-cask.rb:42:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/local/Library/brew.rb:59:in `require?'
/usr/local/Library/brew.rb:142:in `<main>'
$ brew cask install --verbose atom
==> Downloading https://atom.io/download/mac
Already downloaded: /Library/Caches/Homebrew/atom-latest
==> Symlinking App 'Atom.app' to '/Users/dvolz/Applications/Atom.app'
==> Generic artifacting Artifact 'Atom.app' to '/Users/dvolz/Applications/Atom.app'
==> Symlinking Binary 'apm' to '/usr/local/bin/apm'
==> Symlinking Binary 'atom.sh' to '/usr/local/bin/atom'
Error: Command failed to execute!
==> Failed command:
["/usr/bin/xattr", "-w", "com.apple.metadata:kMDItemAlternateNames", "(\\\"atom\\\")", "#<Pathname:/usr/local/bin/atom>"]
==> Output of failed command:
==> Exit status of failed command:
#<Process::Status: pid 1488 exit 1>
Kernel.exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment