Homebrew / homebrew-cask

🍻 A CLI workflow for the administration of macOS applications distributed as binaries
https://brew.sh
BSD 2-Clause "Simplified" License
20.95k stars 10.73k forks source link

[CASK] KiCAD fails to install due to its Application folder structure of multiple apps/Aliases. #128761

Closed andrewcrook closed 2 years ago

andrewcrook commented 2 years ago

Verification

Description of issue

KiCAD CASK fails because it cannot find KiCad.app in Applications this because KiCAD installs multiple Apps/alias into a subfolder under Applications. Currently this issue stops the application from installing.

==> Purging files for version 6.0.7-1 of Cask kicad
Error: kicad: It seems the App Suite source '/Applications/KiCad' is not there.
User XXXX has now standard user rights
Cleaning Up....
Complete.

Command that failed

brew upgrade kiCad

Output of command with --verbose --debug

==> Upgrading 1 outdated package:
kicad 6.0.6-1 -> 6.0.7-1
==> Started upgrade process for Cask kicad
==> Upgrading kicad
==> Printing caveats
==> Cask::Installer#fetch
==> Checking cask has checksum
==> Downloading https://kicad-downloads.s3.cern.ch/osx/stable/kicad-unified-6.0.7-1.dmg
/opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/3.5.6\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 12.5\)\ curl/7.79.1 --header Accept-Language:\ en --retry 3 --location --silent --head --request GET https://kicad-downloads.s3.cern.ch/osx/stable/kicad-unified-6.0.7-1.dmg
Already downloaded: /Users/XXXX/Library/Caches/Homebrew/downloads/89074e2e9fa99bd6c8d2220e8cad089b9b4cd74cf19cbd60907a880cbd4c87a7--kicad-unified-6.0.7-1.dmg
==> Checking quarantine support
/usr/bin/xattr -h
/usr/bin/swift -target arm64-apple-macosx12 /opt/homebrew/Library/Homebrew/cask/utils/quarantine.swift
==> Quarantine is available.
==> Verifying Gatekeeper status of /Users/XXXX/Library/Caches/Homebrew/downloads/89074e2e9fa99bd6c8d2220e8cad089b9b4cd74cf19cbd60907a880cbd4c87a7--kicad-unified-6.0.7-1.dmg
/usr/bin/xattr -p com.apple.quarantine /Users/XXXX/Library/Caches/Homebrew/downloads/89074e2e9fa99bd6c8d2220e8cad089b9b4cd74cf19cbd60907a880cbd4c87a7--kicad-unified-6.0.7-1.dmg
==> /Users/XXXX/Library/Caches/Homebrew/downloads/89074e2e9fa99bd6c8d2220e8cad089b9b4cd74cf19cbd60907a880cbd4c87a7--kicad-unified-6.0.7-1.dmg is quarantined
==> Verifying checksum for cask 'kicad'
hdiutil imageinfo -format /Users/XXXX/Library/Caches/Homebrew/downloads/89074e2e9fa99bd6c8d2220e8cad089b9b4cd74cf19cbd60907a880cbd4c87a7--kicad-unified-6.0.7-1.dmg
==> Uninstalling artifacts
==> 4 artifacts defined
#<SortedSet: {#<Cask::Artifact::Uninstall:0x0000000126040430 @cask=#<Cask::Cask:0x0000000126120620 @token="kicad", @sourcefile_path=#<Pathname:/opt/homebrew/Caskroom/kicad/.metadata/6.0.6-1/20220625103751.876/Casks/kicad.rb>, @source="cask \"kicad\" do\n  version \"6.0.6-1\"\n  sha256 \"c72280be9e5233b85a1f6c9295a4753c9954f5f2f45361d539c806fbe0f05966\"\n\n  url \"https://kicad-downloads.s3.cern.ch/osx/stable/kicad-unified-\#{version}.dmg\",\n      verified: \"kicad-downloads.s3.cern.ch/\"\n  name \"KiCad\"\n  desc \"Electronics design automation suite\"\n  homepage \"https://kicad.org/\"\n\n  livecheck do\n    url \"https://kicad-downloads.s3.cern.ch/?delimiter=/&prefix=osx/stable/\"\n    regex(/kicad-unified-(\\d+(?:.\\d+)*)\\.dmg/i)\n  end\n\n  depends_on macos: \">= :catalina\"\n\n  suite \"KiCad\"\n  artifact \"demos\", target: \"/Library/Application Support/kicad/demos\"\n\n  uninstall delete: [\n    \"\#{appdir}/KiCad\",\n    \"/Library/Application Support/kicad/demos\",\n  ]\n\n  zap trash: [\n    \"/Library/Application Support/kicad\",\n    \"~/Library/Application Support/kicad\",\n    \"~/Library/Preferences/kicad\",\n    \"~/Library/Preferences/org.kicad-pcb.*\",\n  ]\nend\n", @tap=nil, @allow_reassignment=false, @block=#<Proc:0x00000001261204e0@/opt/homebrew/Caskroom/kicad/.metadata/6.0.6-1/20220625103751.876/Casks/kicad.rb:1>, @default_config=#<Cask::Config:0x00000001261204b8 @explicit={}>, @caskroom_path=#<Pathname:/opt/homebrew/Caskroom/kicad>, @metadata_main_container_path=#<Pathname:/opt/homebrew/Caskroom/kicad/.metadata>, @config=#<Cask::Config:0x0000000125dfd7b8 @explicit={}, @default={:languages=>["en-GB"], :appdir=>#<Pathname:/Applications>, :colorpickerdir=>#<Pathname:/Users/XXXX/Library/ColorPickers>, :prefpanedir=>#<Pathname:/Users/XXXX/Library/PreferencePanes>, :qlplugindir=>#<Pathname:/Users/XXXX/Library/QuickLook>, :mdimporterdir=>#<Pathname:/Users/XXXX/Library/Spotlight>, :dictionarydir=>#<Pathname:/Users/XXXX/Library/Dictionaries>, :fontdir=>#<Pathname:/Users/XXXX/Library/Fonts>, :servicedir=>#<Pathname:/Users/XXXX/Library/Services>, :input_methoddir=>#<Pathname:/Users/XXXX/Library/Input Methods>, :internet_plugindir=>#<Pathname:/Users/XXXX/Library/Internet Plug-Ins>, :audio_unit_plugindir=>#<Pathname:/Users/XXXX/Library/Audio/Plug-Ins/Components>, :vst_plugindir=>#<Pathname:/Users/XXXX/Library/Audio/Plug-Ins/VST>, :vst3_plugindir=>#<Pathname:/Users/XXXX/Library/Audio/Plug-Ins/VST3>, :screen_saverdir=>#<Pathname:/Users/XXXX/Library/Screen Savers>}, @env={}>, @dsl=#<Cask::DSL:0x00000001259ffb70 @cask=#<Cask::Cask:0x0000000126120620 ...>, @token="kicad", @version="6.0.6-1", @sha256=#<Checksum:0x00000001259fc8a8 @hexdigest="c72280be9e5233b85a1f6c9295a4753c9954f5f2f45361d539c806fbe0f05966">, @url=#<URL::DSL:0x0000000125a0d068 @uri=#<URI::HTTPS https://kicad-downloads.s3.cern.ch/osx/stable/kicad-unified-6.0.6-1.dmg>, @verified="kicad-downloads.s3.cern.ch/", @using=nil, @tag=nil, @branch=nil, @revisions=nil, @revision=nil, @trust_cert=nil, @cookies=nil, @referer=nil, @header=nil, @user_agent=:default, @data=nil, @specs={:verified=>"kicad-downloads.s3.cern.ch/", :user_agent=>:default}>, @name=["KiCad"], @desc="Electronics design automation suite", @homepage="https://kicad.org/", @livecheck=#<Livecheck:0x0000000125a14f48 @package_or_resource=#<Cask::DSL:0x00000001259ffb70 ...>, @referenced_cask_name=nil, @referenced_formula_name=nil, @regex=/kicad-unified-(\d+(?:.\d+)*)\.dmg/i, @skip=false, @skip_msg=nil, @strategy=nil, @url="https://kicad-downloads.s3.cern.ch/?delimiter=/&prefix=osx/stable/">, @livecheckable=true, @depends_on={:macos=>#<MacOSRequirement: version>="10.15" []>}, @artifacts=#<SortedSet: {...}>, @staged_path=#<Pathname:/opt/homebrew/Caskroom/kicad/6.0.6-1>, @language_eval=nil>>, @directives={:delete=>["/Applications/KiCad", "/Library/Application Support/kicad/demos"], :signal=>[]}>, #<Cask::Artifact::Suite:0x0000000125a47088 @cask=#<Cask::Cask:0x0000000126120620 @token="kicad", @sourcefile_path=#<Pathname:/opt/homebrew/Caskroom/kicad/.metadata/6.0.6-1/20220625103751.876/Casks/kicad.rb>, @source="cask \"kicad\" do\n  version \"6.0.6-1\"\n  sha256 \"c72280be9e5233b85a1f6c9295a4753c9954f5f2f45361d539c806fbe0f05966\"\n\n  url \"https://kicad-downloads.s3.cern.ch/osx/stable/kicad-unified-\#{version}.dmg\",\n      verified: \"kicad-downloads.s3.cern.ch/\"\n  name \"KiCad\"\n  desc \"Electronics design automation suite\"\n  homepage \"https://kicad.org/\"\n\n  livecheck do\n    url \"https://kicad-downloads.s3.cern.ch/?delimiter=/&prefix=osx/stable/\"\n    regex(/kicad-unified-(\\d+(?:.\\d+)*)\\.dmg/i)\n  end\n\n  depends_on macos: \">= :catalina\"\n\n  suite \"KiCad\"\n  artifact \"demos\", target: \"/Library/Application Support/kicad/demos\"\n\n  uninstall delete: [\n    \"\#{appdir}/KiCad\",\n    \"/Library/Application Support/kicad/demos\",\n  ]\n\n  zap trash: [\n    \"/Library/Application Support/kicad\",\n    \"~/Library/Application Support/kicad\",\n    \"~/Library/Preferences/kicad\",\n    \"~/Library/Preferences/org.kicad-pcb.*\",\n  ]\nend\n", @tap=nil, @allow_reassignment=false, @block=#<Proc:0x00000001261204e0@/opt/homebrew/Caskroom/kicad/.metadata/6.0.6-1/20220625103751.876/Casks/kicad.rb:1>, @default_config=#<Cask::Config:0x00000001261204b8 @explicit={}>, @caskroom_path=#<Pathname:/opt/homebrew/Caskroom/kicad>, @metadata_main_container_path=#<Pathname:/opt/homebrew/Caskroom/kicad/.metadata>, @config=#<Cask::Config:0x0000000125dfd7b8 @explicit={}, @default={:languages=>["en-GB"], :appdir=>#<Pathname:/Applications>, :colorpickerdir=>#<Pathname:/Users/XXXX/Library/ColorPickers>, :prefpanedir=>#<Pathname:/Users/XXXX/Library/PreferencePanes>, :qlplugindir=>#<Pathname:/Users/XXXX/Library/QuickLook>, :mdimporterdir=>#<Pathname:/Users/XXXX/Library/Spotlight>, :dictionarydir=>#<Pathname:/Users/XXXX/Library/Dictionaries>, :fontdir=>#<Pathname:/Users/XXXX/Library/Fonts>, :servicedir=>#<Pathname:/Users/XXXX/Library/Services>, :input_methoddir=>#<Pathname:/Users/XXXX/Library/Input Methods>, :internet_plugindir=>#<Pathname:/Users/XXXX/Library/Internet Plug-Ins>, :audio_unit_plugindir=>#<Pathname:/Users/XXXX/Library/Audio/Plug-Ins/Components>, :vst_plugindir=>#<Pathname:/Users/XXXX/Library/Audio/Plug-Ins/VST>, :vst3_plugindir=>#<Pathname:/Users/XXXX/Library/Audio/Plug-Ins/VST3>, :screen_saverdir=>#<Pathname:/Users/XXXX/Library/Screen Savers>}, @env={}>, @dsl=#<Cask::DSL:0x00000001259ffb70 @cask=#<Cask::Cask:0x0000000126120620 ...>, @token="kicad", @version="6.0.6-1", @sha256=#<Checksum:0x00000001259fc8a8 @hexdigest="c72280be9e5233b85a1f6c9295a4753c9954f5f2f45361d539c806fbe0f05966">, @url=#<URL::DSL:0x0000000125a0d068 @uri=#<URI::HTTPS https://kicad-downloads.s3.cern.ch/osx/stable/kicad-unified-6.0.6-1.dmg>, @verified="kicad-downloads.s3.cern.ch/", @using=nil, @tag=nil, @branch=nil, @revisions=nil, @revision=nil, @trust_cert=nil, @cookies=nil, @referer=nil, @header=nil, @user_agent=:default, @data=nil, @specs={:verified=>"kicad-downloads.s3.cern.ch/", :user_agent=>:default}>, @name=["KiCad"], @desc="Electronics design automation suite", @homepage="https://kicad.org/", @livecheck=#<Livecheck:0x0000000125a14f48 @package_or_resource=#<Cask::DSL:0x00000001259ffb70 ...>, @referenced_cask_name=nil, @referenced_formula_name=nil, @regex=/kicad-unified-(\d+(?:.\d+)*)\.dmg/i, @skip=false, @skip_msg=nil, @strategy=nil, @url="https://kicad-downloads.s3.cern.ch/?delimiter=/&prefix=osx/stable/">, @livecheckable=true, @depends_on={:macos=>#<MacOSRequirement: version>="10.15" []>}, @artifacts=#<SortedSet: {...}>, @staged_path=#<Pathname:/opt/homebrew/Caskroom/kicad/6.0.6-1>, @language_eval=nil>>, @source_string="KiCad", @target_string="", @source=#<Pathname:/opt/homebrew/Caskroom/kicad/6.0.6-1/KiCad>, @target=#<Pathname:/Applications/KiCad>>, #<Cask::Artifact::Artifact:0x0000000126042b18 @cask=#<Cask::Cask:0x0000000126120620 @token="kicad", @sourcefile_path=#<Pathname:/opt/homebrew/Caskroom/kicad/.metadata/6.0.6-1/20220625103751.876/Casks/kicad.rb>, @source="cask \"kicad\" do\n  version \"6.0.6-1\"\n  sha256 \"c72280be9e5233b85a1f6c9295a4753c9954f5f2f45361d539c806fbe0f05966\"\n\n  url \"https://kicad-downloads.s3.cern.ch/osx/stable/kicad-unified-\#{version}.dmg\",\n      verified: \"kicad-downloads.s3.cern.ch/\"\n  name \"KiCad\"\n  desc \"Electronics design automation suite\"\n  homepage \"https://kicad.org/\"\n\n  livecheck do\n    url \"https://kicad-downloads.s3.cern.ch/?delimiter=/&prefix=osx/stable/\"\n    regex(/kicad-unified-(\\d+(?:.\\d+)*)\\.dmg/i)\n  end\n\n  depends_on macos: \">= :catalina\"\n\n  suite \"KiCad\"\n  artifact \"demos\", target: \"/Library/Application Support/kicad/demos\"\n\n  uninstall delete: [\n    \"\#{appdir}/KiCad\",\n    \"/Library/Application Support/kicad/demos\",\n  ]\n\n  zap trash: [\n    \"/Library/Application Support/kicad\",\n    \"~/Library/Application Support/kicad\",\n    \"~/Library/Preferences/kicad\",\n    \"~/Library/Preferences/org.kicad-pcb.*\",\n  ]\nend\n", @tap=nil, @allow_reassignment=false, @block=#<Proc:0x00000001261204e0@/opt/homebrew/Caskroom/kicad/.metadata/6.0.6-1/20220625103751.876/Casks/kicad.rb:1>, @default_config=#<Cask::Config:0x00000001261204b8 @explicit={}>, @caskroom_path=#<Pathname:/opt/homebrew/Caskroom/kicad>, @metadata_main_container_path=#<Pathname:/opt/homebrew/Caskroom/kicad/.metadata>, @config=#<Cask::Config:0x0000000125dfd7b8 @explicit={}, @default={:languages=>["en-GB"], :appdir=>#<Pathname:/Applications>, :colorpickerdir=>#<Pathname:/Users/XXXX/Library/ColorPickers>, :prefpanedir=>#<Pathname:/Users/XXXX/Library/PreferencePanes>, :qlplugindir=>#<Pathname:/Users/XXXX/Library/QuickLook>, :mdimporterdir=>#<Pathname:/Users/XXXX/Library/Spotlight>, :dictionarydir=>#<Pathname:/Users/XXXX/Library/Dictionaries>, :fontdir=>#<Pathname:/Users/XXXX/Library/Fonts>, :servicedir=>#<Pathname:/Users/XXXX/Library/Services>, :input_methoddir=>#<Pathname:/Users/XXXX/Library/Input Methods>, :internet_plugindir=>#<Pathname:/Users/XXXX/Library/Internet Plug-Ins>, :audio_unit_plugindir=>#<Pathname:/Users/XXXX/Library/Audio/Plug-Ins/Components>, :vst_plugindir=>#<Pathname:/Users/XXXX/Library/Audio/Plug-Ins/VST>, :vst3_plugindir=>#<Pathname:/Users/XXXX/Library/Audio/Plug-Ins/VST3>, :screen_saverdir=>#<Pathname:/Users/XXXX/Library/Screen Savers>}, @env={}>, @dsl=#<Cask::DSL:0x00000001259ffb70 @cask=#<Cask::Cask:0x0000000126120620 ...>, @token="kicad", @version="6.0.6-1", @sha256=#<Checksum:0x00000001259fc8a8 @hexdigest="c72280be9e5233b85a1f6c9295a4753c9954f5f2f45361d539c806fbe0f05966">, @url=#<URL::DSL:0x0000000125a0d068 @uri=#<URI::HTTPS https://kicad-downloads.s3.cern.ch/osx/stable/kicad-unified-6.0.6-1.dmg>, @verified="kicad-downloads.s3.cern.ch/", @using=nil, @tag=nil, @branch=nil, @revisions=nil, @revision=nil, @trust_cert=nil, @cookies=nil, @referer=nil, @header=nil, @user_agent=:default, @data=nil, @specs={:verified=>"kicad-downloads.s3.cern.ch/", :user_agent=>:default}>, @name=["KiCad"], @desc="Electronics design automation suite", @homepage="https://kicad.org/", @livecheck=#<Livecheck:0x0000000125a14f48 @package_or_resource=#<Cask::DSL:0x00000001259ffb70 ...>, @referenced_cask_name=nil, @referenced_formula_name=nil, @regex=/kicad-unified-(\d+(?:.\d+)*)\.dmg/i, @skip=false, @skip_msg=nil, @strategy=nil, @url="https://kicad-downloads.s3.cern.ch/?delimiter=/&prefix=osx/stable/">, @livecheckable=true, @depends_on={:macos=>#<MacOSRequirement: version>="10.15" []>}, @artifacts=#<SortedSet: {...}>, @staged_path=#<Pathname:/opt/homebrew/Caskroom/kicad/6.0.6-1>, @language_eval=nil>>, @source_string="demos", @target_string="/Library/Application Support/kicad/demos", @source=#<Pathname:/opt/homebrew/Caskroom/kicad/6.0.6-1/demos>, @target=#<Pathname:/Library/Application Support/kicad/demos>>, #<Cask::Artifact::Zap:0x0000000126048f68 @cask=#<Cask::Cask:0x0000000126120620 @token="kicad", @sourcefile_path=#<Pathname:/opt/homebrew/Caskroom/kicad/.metadata/6.0.6-1/20220625103751.876/Casks/kicad.rb>, @source="cask \"kicad\" do\n  version \"6.0.6-1\"\n  sha256 \"c72280be9e5233b85a1f6c9295a4753c9954f5f2f45361d539c806fbe0f05966\"\n\n  url \"https://kicad-downloads.s3.cern.ch/osx/stable/kicad-unified-\#{version}.dmg\",\n      verified: \"kicad-downloads.s3.cern.ch/\"\n  name \"KiCad\"\n  desc \"Electronics design automation suite\"\n  homepage \"https://kicad.org/\"\n\n  livecheck do\n    url \"https://kicad-downloads.s3.cern.ch/?delimiter=/&prefix=osx/stable/\"\n    regex(/kicad-unified-(\\d+(?:.\\d+)*)\\.dmg/i)\n  end\n\n  depends_on macos: \">= :catalina\"\n\n  suite \"KiCad\"\n  artifact \"demos\", target: \"/Library/Application Support/kicad/demos\"\n\n  uninstall delete: [\n    \"\#{appdir}/KiCad\",\n    \"/Library/Application Support/kicad/demos\",\n  ]\n\n  zap trash: [\n    \"/Library/Application Support/kicad\",\n    \"~/Library/Application Support/kicad\",\n    \"~/Library/Preferences/kicad\",\n    \"~/Library/Preferences/org.kicad-pcb.*\",\n  ]\nend\n", @tap=nil, @allow_reassignment=false, @block=#<Proc:0x00000001261204e0@/opt/homebrew/Caskroom/kicad/.metadata/6.0.6-1/20220625103751.876/Casks/kicad.rb:1>, @default_config=#<Cask::Config:0x00000001261204b8 @explicit={}>, @caskroom_path=#<Pathname:/opt/homebrew/Caskroom/kicad>, @metadata_main_container_path=#<Pathname:/opt/homebrew/Caskroom/kicad/.metadata>, @config=#<Cask::Config:0x0000000125dfd7b8 @explicit={}, @default={:languages=>["en-GB"], :appdir=>#<Pathname:/Applications>, :colorpickerdir=>#<Pathname:/Users/XXXX/Library/ColorPickers>, :prefpanedir=>#<Pathname:/Users/XXXX/Library/PreferencePanes>, :qlplugindir=>#<Pathname:/Users/XXXX/Library/QuickLook>, :mdimporterdir=>#<Pathname:/Users/XXXX/Library/Spotlight>, :dictionarydir=>#<Pathname:/Users/XXXX/Library/Dictionaries>, :fontdir=>#<Pathname:/Users/XXXX/Library/Fonts>, :servicedir=>#<Pathname:/Users/XXXX/Library/Services>, :input_methoddir=>#<Pathname:/Users/XXXX/Library/Input Methods>, :internet_plugindir=>#<Pathname:/Users/XXXX/Library/Internet Plug-Ins>, :audio_unit_plugindir=>#<Pathname:/Users/XXXX/Library/Audio/Plug-Ins/Components>, :vst_plugindir=>#<Pathname:/Users/XXXX/Library/Audio/Plug-Ins/VST>, :vst3_plugindir=>#<Pathname:/Users/XXXX/Library/Audio/Plug-Ins/VST3>, :screen_saverdir=>#<Pathname:/Users/XXXX/Library/Screen Savers>}, @env={}>, @dsl=#<Cask::DSL:0x00000001259ffb70 @cask=#<Cask::Cask:0x0000000126120620 ...>, @token="kicad", @version="6.0.6-1", @sha256=#<Checksum:0x00000001259fc8a8 @hexdigest="c72280be9e5233b85a1f6c9295a4753c9954f5f2f45361d539c806fbe0f05966">, @url=#<URL::DSL:0x0000000125a0d068 @uri=#<URI::HTTPS https://kicad-downloads.s3.cern.ch/osx/stable/kicad-unified-6.0.6-1.dmg>, @verified="kicad-downloads.s3.cern.ch/", @using=nil, @tag=nil, @branch=nil, @revisions=nil, @revision=nil, @trust_cert=nil, @cookies=nil, @referer=nil, @header=nil, @user_agent=:default, @data=nil, @specs={:verified=>"kicad-downloads.s3.cern.ch/", :user_agent=>:default}>, @name=["KiCad"], @desc="Electronics design automation suite", @homepage="https://kicad.org/", @livecheck=#<Livecheck:0x0000000125a14f48 @package_or_resource=#<Cask::DSL:0x00000001259ffb70 ...>, @referenced_cask_name=nil, @referenced_formula_name=nil, @regex=/kicad-unified-(\d+(?:.\d+)*)\.dmg/i, @skip=false, @skip_msg=nil, @strategy=nil, @url="https://kicad-downloads.s3.cern.ch/?delimiter=/&prefix=osx/stable/">, @livecheckable=true, @depends_on={:macos=>#<MacOSRequirement: version>="10.15" []>}, @artifacts=#<SortedSet: {...}>, @staged_path=#<Pathname:/opt/homebrew/Caskroom/kicad/6.0.6-1>, @language_eval=nil>>, @directives={:trash=>["/Library/Application Support/kicad", "~/Library/Application Support/kicad", "~/Library/Preferences/kicad", "~/Library/Preferences/org.kicad-pcb.*"], :signal=>[]}>}>
==> Uninstalling artifact of class Cask::Artifact::Uninstall
==> Removing files:
/Applications/KiCad
/usr/bin/sudo -E -- /usr/bin/xargs -0 -- /bin/rm -r -f --
Password:
XXXX is not in the sudoers file.  This incident will be reported.
==> Purging files for version 6.0.7-1 of Cask kicad
Error: kicad: Failure while executing; `/usr/bin/sudo -E -- /usr/bin/xargs -0 -- /bin/rm -r -f --` exited with 1. Here's the output:
XXXX is not in the sudoers file.  This incident will be reported.

/opt/homebrew/Library/Homebrew/cask/cmd/upgrade.rb:168:in `upgrade_casks'
/opt/homebrew/Library/Homebrew/cmd/upgrade.rb:216:in `upgrade_outdated_casks'
/opt/homebrew/Library/Homebrew/cmd/upgrade.rb:111:in `upgrade'
/opt/homebrew/Library/Homebrew/brew.rb:93:in `<main>'

Output of brew doctor --verbose

==> Cask Environment Variables:
BUNDLE_PATH
CHRUBY_VERSION
GEM_HOME
GEM_PATH
HOMEBREW_CASK_OPTS
LC_ALL
PATH
RBENV_VERSION
RUBYLIB
RUBYOPT
RUBYPATH
SHELL
==> $LOAD_PATHS
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/warning-1.3.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/tapioca-0.7.2/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/yard-sorbet-0.6.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/yard-0.9.28/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/spoom-1.1.11/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/thor-1.2.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/sorbet-static-and-runtime-0.5.10160/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/sorbet-runtime-stub-0.2.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/sorbet-0.5.10160/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/sorbet-static-0.5.10160-universal-darwin-15/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/simplecov-cobertura-2.1.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/simplecov-0.21.2/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/simplecov_json_formatter-0.1.4/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/simplecov-html-0.12.3/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/ruby-macho-3.0.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-sorbet-0.6.11/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-rspec-2.12.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-rails-2.15.2/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-performance-1.14.3/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-1.31.2/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/unicode-display_width-2.2.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-ast-1.19.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec_junit_formatter-0.5.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-wait-0.0.9/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-sorbet-1.8.3/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-retry-0.6.2/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-its-1.3.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-github-2.3.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-3.11.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-mocks-3.11.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-expectations-3.11.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-core-3.11.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-support-3.11.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/ronn-0.7.3/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rexml-3.2.5/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rdiscount-2.2.0.2/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/x86_64-darwin-15/2.6.0-static/rdiscount-2.2.0.2
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rbi-0.0.14/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/unparser-0.6.4/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rack-2.2.4/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/pry-0.14.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/plist-3.6.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/patchelf-1.3.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/parlour-8.0.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/sorbet-runtime-0.5.10160/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rainbow-3.1.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/parser-3.1.2.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/parallel_tests-3.11.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/parallel-1.22.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/mustache-1.1.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/method_source-1.0.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/mechanize-2.8.5/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/webrobots-0.1.2/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/webrick-1.7.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubyntlm-0.6.3/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/nokogiri-1.13.7-x86_64-darwin/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/racc-1.6.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/x86_64-darwin-15/2.6.0-static/racc-1.6.0
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/mini_portile2-2.8.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/net-http-persistent-4.0.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/net-http-digest_auth-1.4.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/mime-types-3.4.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/mime-types-data-3.2022.0105/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/json_schemer-0.2.21/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/uri_template-0.7.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/json-2.6.2/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/x86_64-darwin-15/2.6.0-static/json-2.6.2
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/http-cookie-1.0.5/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/hpricot-0.8.6/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/x86_64-darwin-15/2.6.0-static/hpricot-0.8.6
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/hana-1.3.7/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/elftools-1.1.3/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/ecma-re-validator-0.4.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/regexp_parser-2.5.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/domain_name-0.5.20190701/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/unf-0.1.4/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/unf_ext-0.0.8.2/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/x86_64-darwin-15/2.6.0-static/unf_ext-0.0.8.2
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/docile-1.4.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/diff-lcs-1.5.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/did_you_mean-1.6.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/connection_pool-2.2.5/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/commander-4.6.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/highline-2.0.3/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/coderay-1.1.3/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/byebug-11.1.3/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/x86_64-darwin-15/2.6.0-static/byebug-11.1.3
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/bootsnap-1.12.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/x86_64-darwin-15/2.6.0-static/bootsnap-1.12.0
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/msgpack-1.5.3/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/x86_64-darwin-15/2.6.0-static/msgpack-1.5.3
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/bindata-2.4.10/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/ast-2.4.2/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/addressable-2.8.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/public_suffix-4.0.7/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/activesupport-6.1.6.1/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/zeitwerk-2.6.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/tzinfo-2.0.5/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/minitest-5.16.2/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/i18n-1.12.0/lib
/opt/homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/concurrent-ruby-1.1.10/lib/concurrent-ruby
/Library/Ruby/Gems/2.6.0/gems/did_you_mean-1.3.0/lib
/Library/Ruby/Site/2.6.0
/Library/Ruby/Site/2.6.0/arm64e-darwin21
/Library/Ruby/Site/2.6.0/universal-darwin21
/Library/Ruby/Site
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/vendor_ruby/2.6.0
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/vendor_ruby/2.6.0/arm64e-darwin21
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/vendor_ruby/2.6.0/universal-darwin21
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/vendor_ruby
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/arm64e-darwin21
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin21
/opt/homebrew/Library/Homebrew
==> Homebrew Version
3.5.6
==> macOS
12.5
==> SIP
Enabled
==> Homebrew Cask Staging Location
/opt/homebrew/Caskroom
==> Homebrew Cask Taps:
/opt/homebrew/Library/Taps/homebrew/homebrew-cask (4032 casks)
/opt/homebrew/Library/Taps/homebrew/homebrew-cask-versions (223 casks)
/opt/homebrew/Library/Taps/homebrew/homebrew-cask-fonts (1962 casks)
/opt/homebrew/Library/Taps/homebrew/homebrew-cask-drivers (216 casks)
/opt/homebrew/Library/Taps/wix/homebrew-brew (1 cask)
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and which additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew-provided
script of the same name. We found the following "config" scripts:
  /Users/XXXX/.asdf/shims/python2-config
  /Users/XXXX/.asdf/shims/python2.7-config
  /Users/XXXX/.asdf/shims/python3.10-config
  /Users/XXXX/.asdf/shims/python-config
  /Users/XXXX/.asdf/shims/python3-config

Output of brew tap

aykamko/tag-ag
blacktop/tap
candid82/brew
denisidoro/tools
eth-p/software
goles/battery
hacker1024/hacker1024
hazcod/hazcod
homebrew/bundle
homebrew/cask
homebrew/cask-drivers
homebrew/cask-fonts
homebrew/cask-versions
homebrew/command-not-found
homebrew/core
homebrew/services
incidentist/nyxt
klaaspieter/formula
martido/graph
mistertea/et
nodenv/nodenv
rcmdnk/file
robotsandpencils/made
saagarjha/tap
wix/brew
wpscanteam/tap
yqrashawn/goku
SMillerDev commented 2 years ago
==> Removing files:
/Applications/KiCad
/usr/bin/sudo -E -- /usr/bin/xargs -0 -- /bin/rm -r -f --
Password:
XXXX is not in the sudoers file.  This incident will be reported.
==> Purging files for version 6.0.7-1 of Cask kicad
Error: kicad: Failure while executing; `/usr/bin/sudo -E -- /usr/bin/xargs -0 -- /bin/rm -r -f --` exited with 1. Here's the output:
XXXX is not in the sudoers file.  This incident will be reported.

Your debug output seems to suggest a different problem

andrewcrook commented 2 years ago

@SMillerDev

ahh that’s because I use the SAP Privileges App timed out removing sudo access. Sorry for the confusion.

I reran the command again with correct privileges I still get the same issue.

It fails to find '/Applications/KiCad.App’ which is correct because it uses a sub folder to store several apps/ aliases.

image image
==> Upgrading 1 outdated package:
kicad 6.0.6-1 -> 6.0.7-1
==> Started upgrade process for Cask kicad
==> Upgrading kicad
==> Printing caveats
==> Cask::Installer#fetch
==> Downloading https://kicad-downloads.s3.cern.ch/osx/stable/kicad-unified-6.0.7-1.dmg
/opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/3.5.6\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 12.5\)\ curl/7.79.1 --header Accept-Language:\ en --retry 3 --location --silent --head --request GET https://kicad-downloads.s3.cern.ch/osx/stable/kicad-unified-6.0.7-1.dmg
Already downloaded: /Users/XXXX/Library/Caches/Homebrew/downloads/89074e2e9fa99bd6c8d2220e8cad089b9b4cd74cf19cbd60907a880cbd4c87a7--kicad-unified-6.0.7-1.dmg
==> Checking quarantine support
/usr/bin/xattr -h
/usr/bin/swift -target arm64-apple-macosx12 /opt/homebrew/Library/Homebrew/cask/utils/quarantine.swift
==> Quarantine is available.
==> Verifying Gatekeeper status of /Users/XXXX/Library/Caches/Homebrew/downloads/89074e2e9fa99bd6c8d2220e8cad089b9b4cd74cf19cbd60907a880cbd4c87a7--kicad-unified-6.0.7-1.dmg
/usr/bin/xattr -p com.apple.quarantine /Users/XXXX/Library/Caches/Homebrew/downloads/89074e2e9fa99bd6c8d2220e8cad089b9b4cd74cf19cbd60907a880cbd4c87a7--kicad-unified-6.0.7-1.dmg
==> /Users/XXXX/Library/Caches/Homebrew/downloads/89074e2e9fa99bd6c8d2220e8cad089b9b4cd74cf19cbd60907a880cbd4c87a7--kicad-unified-6.0.7-1.dmg is quarantined
==> Verifying checksum for cask 'kicad'
hdiutil imageinfo -format /Users/XXXX/Library/Caches/Homebrew/downloads/89074e2e9fa99bd6c8d2220e8cad089b9b4cd74cf19cbd60907a880cbd4c87a7--kicad-unified-6.0.7-1.dmg
==> Uninstalling artifacts
==> 4 artifacts defined
#<SortedSet: {#<Cask::Artifact::Uninstall:0x000000014e2188e8 @cask=#<Cask::Cask:0x000000014e980b58 @token="kicad", @sourcefile_path=#<Pathname:/opt/homebrew/Caskroom/kicad/.metadata/6.0.6-1/20220625103751.876/Casks/kicad.rb>, @source="cask \"kicad\" do\n  version \"6.0.6-1\"\n  sha256 \"c72280be9e5233b85a1f6c9295a4753c9954f5f2f45361d539c806fbe0f05966\"\n\n  url \"https://kicad-downloads.s3.cern.ch/osx/stable/kicad-unified-\#{version}.dmg\",\n      verified: \"kicad-downloads.s3.cern.ch/\"\n  name \"KiCad\"\n  desc \"Electronics design automation suite\"\n  homepage \"https://kicad.org/\"\n\n  livecheck do\n    url \"https://kicad-downloads.s3.cern.ch/?delimiter=/&prefix=osx/stable/\"\n    regex(/kicad-unified-(\\d+(?:.\\d+)*)\\.dmg/i)\n  end\n\n  depends_on macos: \">= :catalina\"\n\n  suite \"KiCad\"\n  artifact \"demos\", target: \"/Library/Application Support/kicad/demos\"\n\n  uninstall delete: [\n    \"\#{appdir}/KiCad\",\n    \"/Library/Application Support/kicad/demos\",\n  ]\n\n  zap trash: [\n    \"/Library/Application Support/kicad\",\n    \"~/Library/Application Support/kicad\",\n    \"~/Library/Preferences/kicad\",\n    \"~/Library/Preferences/org.kicad-pcb.*\",\n  ]\nend\n", @tap=nil, @allow_reassignment=false, @block=#<Proc:0x000000014e980a18@/opt/homebrew/Caskroom/kicad/.metadata/6.0.6-1/20220625103751.876/Casks/kicad.rb:1>, @default_config=#<Cask::Config:0x000000014e9809f0 @explicit={}>, @caskroom_path=#<Pathname:/opt/homebrew/Caskroom/kicad>, @metadata_main_container_path=#<Pathname:/opt/homebrew/Caskroom/kicad/.metadata>, @config=#<Cask::Config:0x000000014e989be0 @explicit={}, @default={:languages=>["en-GB"], :appdir=>#<Pathname:/Applications>, :colorpickerdir=>#<Pathname:/Users/XXXX/Library/ColorPickers>, :prefpanedir=>#<Pathname:/Users/XXXX/Library/PreferencePanes>, :qlplugindir=>#<Pathname:/Users/XXXX/Library/QuickLook>, :mdimporterdir=>#<Pathname:/Users/XXXX/Library/Spotlight>, :dictionarydir=>#<Pathname:/Users/XXXX/Library/Dictionaries>, :fontdir=>#<Pathname:/Users/XXXX/Library/Fonts>, :servicedir=>#<Pathname:/Users/XXXX/Library/Services>, :input_methoddir=>#<Pathname:/Users/XXXX/Library/Input Methods>, :internet_plugindir=>#<Pathname:/Users/XXXX/Library/Internet Plug-Ins>, :audio_unit_plugindir=>#<Pathname:/Users/XXXX/Library/Audio/Plug-Ins/Components>, :vst_plugindir=>#<Pathname:/Users/XXXX/Library/Audio/Plug-Ins/VST>, :vst3_plugindir=>#<Pathname:/Users/XXXX/Library/Audio/Plug-Ins/VST3>, :screen_saverdir=>#<Pathname:/Users/XXXX/Library/Screen Savers>}, @env={}>, @dsl=#<Cask::DSL:0x000000014e8a08a0 @cask=#<Cask::Cask:0x000000014e980b58 ...>, @token="kicad", @version="6.0.6-1", @sha256=#<Checksum:0x000000014e8b3ef0 @hexdigest="c72280be9e5233b85a1f6c9295a4753c9954f5f2f45361d539c806fbe0f05966">, @url=#<URL::DSL:0x000000014e151ef0 @uri=#<URI::HTTPS https://kicad-downloads.s3.cern.ch/osx/stable/kicad-unified-6.0.6-1.dmg>, @verified="kicad-downloads.s3.cern.ch/", @using=nil, @tag=nil, @branch=nil, @revisions=nil, @revision=nil, @trust_cert=nil, @cookies=nil, @referer=nil, @header=nil, @user_agent=:default, @data=nil, @specs={:verified=>"kicad-downloads.s3.cern.ch/", :user_agent=>:default}>, @name=["KiCad"], @desc="Electronics design automation suite", @homepage="https://kicad.org/", @livecheck=#<Livecheck:0x000000014e16b080 @package_or_resource=#<Cask::DSL:0x000000014e8a08a0 ...>, @referenced_cask_name=nil, @referenced_formula_name=nil, @regex=/kicad-unified-(\d+(?:.\d+)*)\.dmg/i, @skip=false, @skip_msg=nil, @strategy=nil, @url="https://kicad-downloads.s3.cern.ch/?delimiter=/&prefix=osx/stable/">, @livecheckable=true, @depends_on={:macos=>#<MacOSRequirement: version>="10.15" []>}, @artifacts=#<SortedSet: {...}>, @staged_path=#<Pathname:/opt/homebrew/Caskroom/kicad/6.0.6-1>, @language_eval=nil>>, @directives={:delete=>["/Applications/KiCad", "/Library/Application Support/kicad/demos"], :signal=>[]}>, #<Cask::Artifact::Suite:0x000000014e1706c0 @cask=#<Cask::Cask:0x000000014e980b58 @token="kicad", @sourcefile_path=#<Pathname:/opt/homebrew/Caskroom/kicad/.metadata/6.0.6-1/20220625103751.876/Casks/kicad.rb>, @source="cask \"kicad\" do\n  version \"6.0.6-1\"\n  sha256 \"c72280be9e5233b85a1f6c9295a4753c9954f5f2f45361d539c806fbe0f05966\"\n\n  url \"https://kicad-downloads.s3.cern.ch/osx/stable/kicad-unified-\#{version}.dmg\",\n      verified: \"kicad-downloads.s3.cern.ch/\"\n  name \"KiCad\"\n  desc \"Electronics design automation suite\"\n  homepage \"https://kicad.org/\"\n\n  livecheck do\n    url \"https://kicad-downloads.s3.cern.ch/?delimiter=/&prefix=osx/stable/\"\n    regex(/kicad-unified-(\\d+(?:.\\d+)*)\\.dmg/i)\n  end\n\n  depends_on macos: \">= :catalina\"\n\n  suite \"KiCad\"\n  artifact \"demos\", target: \"/Library/Application Support/kicad/demos\"\n\n  uninstall delete: [\n    \"\#{appdir}/KiCad\",\n    \"/Library/Application Support/kicad/demos\",\n  ]\n\n  zap trash: [\n    \"/Library/Application Support/kicad\",\n    \"~/Library/Application Support/kicad\",\n    \"~/Library/Preferences/kicad\",\n    \"~/Library/Preferences/org.kicad-pcb.*\",\n  ]\nend\n", @tap=nil, @allow_reassignment=false, @block=#<Proc:0x000000014e980a18@/opt/homebrew/Caskroom/kicad/.metadata/6.0.6-1/20220625103751.876/Casks/kicad.rb:1>, @default_config=#<Cask::Config:0x000000014e9809f0 @explicit={}>, @caskroom_path=#<Pathname:/opt/homebrew/Caskroom/kicad>, @metadata_main_container_path=#<Pathname:/opt/homebrew/Caskroom/kicad/.metadata>, @config=#<Cask::Config:0x000000014e989be0 @explicit={}, @default={:languages=>["en-GB"], :appdir=>#<Pathname:/Applications>, :colorpickerdir=>#<Pathname:/Users/XXXX/Library/ColorPickers>, :prefpanedir=>#<Pathname:/Users/XXXX/Library/PreferencePanes>, :qlplugindir=>#<Pathname:/Users/XXXX/Library/QuickLook>, :mdimporterdir=>#<Pathname:/Users/XXXX/Library/Spotlight>, :dictionarydir=>#<Pathname:/Users/XXXX/Library/Dictionaries>, :fontdir=>#<Pathname:/Users/XXXX/Library/Fonts>, :servicedir=>#<Pathname:/Users/XXXX/Library/Services>, :input_methoddir=>#<Pathname:/Users/XXXX/Library/Input Methods>, :internet_plugindir=>#<Pathname:/Users/XXXX/Library/Internet Plug-Ins>, :audio_unit_plugindir=>#<Pathname:/Users/XXXX/Library/Audio/Plug-Ins/Components>, :vst_plugindir=>#<Pathname:/Users/XXXX/Library/Audio/Plug-Ins/VST>, :vst3_plugindir=>#<Pathname:/Users/XXXX/Library/Audio/Plug-Ins/VST3>, :screen_saverdir=>#<Pathname:/Users/XXXX/Library/Screen Savers>}, @env={}>, @dsl=#<Cask::DSL:0x000000014e8a08a0 @cask=#<Cask::Cask:0x000000014e980b58 ...>, @token="kicad", @version="6.0.6-1", @sha256=#<Checksum:0x000000014e8b3ef0 @hexdigest="c72280be9e5233b85a1f6c9295a4753c9954f5f2f45361d539c806fbe0f05966">, @url=#<URL::DSL:0x000000014e151ef0 @uri=#<URI::HTTPS https://kicad-downloads.s3.cern.ch/osx/stable/kicad-unified-6.0.6-1.dmg>, @verified="kicad-downloads.s3.cern.ch/", @using=nil, @tag=nil, @branch=nil, @revisions=nil, @revision=nil, @trust_cert=nil, @cookies=nil, @referer=nil, @header=nil, @user_agent=:default, @data=nil, @specs={:verified=>"kicad-downloads.s3.cern.ch/", :user_agent=>:default}>, @name=["KiCad"], @desc="Electronics design automation suite", @homepage="https://kicad.org/", @livecheck=#<Livecheck:0x000000014e16b080 @package_or_resource=#<Cask::DSL:0x000000014e8a08a0 ...>, @referenced_cask_name=nil, @referenced_formula_name=nil, @regex=/kicad-unified-(\d+(?:.\d+)*)\.dmg/i, @skip=false, @skip_msg=nil, @strategy=nil, @url="https://kicad-downloads.s3.cern.ch/?delimiter=/&prefix=osx/stable/">, @livecheckable=true, @depends_on={:macos=>#<MacOSRequirement: version>="10.15" []>}, @artifacts=#<SortedSet: {...}>, @staged_path=#<Pathname:/opt/homebrew/Caskroom/kicad/6.0.6-1>, @language_eval=nil>>, @source_string="KiCad", @target_string="", @source=#<Pathname:/opt/homebrew/Caskroom/kicad/6.0.6-1/KiCad>, @target=#<Pathname:/Applications/KiCad>>, #<Cask::Artifact::Artifact:0x000000014e1e1488 @cask=#<Cask::Cask:0x000000014e980b58 @token="kicad", @sourcefile_path=#<Pathname:/opt/homebrew/Caskroom/kicad/.metadata/6.0.6-1/20220625103751.876/Casks/kicad.rb>, @source="cask \"kicad\" do\n  version \"6.0.6-1\"\n  sha256 \"c72280be9e5233b85a1f6c9295a4753c9954f5f2f45361d539c806fbe0f05966\"\n\n  url \"https://kicad-downloads.s3.cern.ch/osx/stable/kicad-unified-\#{version}.dmg\",\n      verified: \"kicad-downloads.s3.cern.ch/\"\n  name \"KiCad\"\n  desc \"Electronics design automation suite\"\n  homepage \"https://kicad.org/\"\n\n  livecheck do\n    url \"https://kicad-downloads.s3.cern.ch/?delimiter=/&prefix=osx/stable/\"\n    regex(/kicad-unified-(\\d+(?:.\\d+)*)\\.dmg/i)\n  end\n\n  depends_on macos: \">= :catalina\"\n\n  suite \"KiCad\"\n  artifact \"demos\", target: \"/Library/Application Support/kicad/demos\"\n\n  uninstall delete: [\n    \"\#{appdir}/KiCad\",\n    \"/Library/Application Support/kicad/demos\",\n  ]\n\n  zap trash: [\n    \"/Library/Application Support/kicad\",\n    \"~/Library/Application Support/kicad\",\n    \"~/Library/Preferences/kicad\",\n    \"~/Library/Preferences/org.kicad-pcb.*\",\n  ]\nend\n", @tap=nil, @allow_reassignment=false, @block=#<Proc:0x000000014e980a18@/opt/homebrew/Caskroom/kicad/.metadata/6.0.6-1/20220625103751.876/Casks/kicad.rb:1>, @default_config=#<Cask::Config:0x000000014e9809f0 @explicit={}>, @caskroom_path=#<Pathname:/opt/homebrew/Caskroom/kicad>, @metadata_main_container_path=#<Pathname:/opt/homebrew/Caskroom/kicad/.metadata>, @config=#<Cask::Config:0x000000014e989be0 @explicit={}, @default={:languages=>["en-GB"], :appdir=>#<Pathname:/Applications>, :colorpickerdir=>#<Pathname:/Users/XXXX/Library/ColorPickers>, :prefpanedir=>#<Pathname:/Users/XXXX/Library/PreferencePanes>, :qlplugindir=>#<Pathname:/Users/XXXX/Library/QuickLook>, :mdimporterdir=>#<Pathname:/Users/XXXX/Library/Spotlight>, :dictionarydir=>#<Pathname:/Users/XXXX/Library/Dictionaries>, :fontdir=>#<Pathname:/Users/XXXX/Library/Fonts>, :servicedir=>#<Pathname:/Users/XXXX/Library/Services>, :input_methoddir=>#<Pathname:/Users/XXXX/Library/Input Methods>, :internet_plugindir=>#<Pathname:/Users/XXXX/Library/Internet Plug-Ins>, :audio_unit_plugindir=>#<Pathname:/Users/XXXX/Library/Audio/Plug-Ins/Components>, :vst_plugindir=>#<Pathname:/Users/XXXX/Library/Audio/Plug-Ins/VST>, :vst3_plugindir=>#<Pathname:/Users/XXXX/Library/Audio/Plug-Ins/VST3>, :screen_saverdir=>#<Pathname:/Users/XXXX/Library/Screen Savers>}, @env={}>, @dsl=#<Cask::DSL:0x000000014e8a08a0 @cask=#<Cask::Cask:0x000000014e980b58 ...>, @token="kicad", @version="6.0.6-1", @sha256=#<Checksum:0x000000014e8b3ef0 @hexdigest="c72280be9e5233b85a1f6c9295a4753c9954f5f2f45361d539c806fbe0f05966">, @url=#<URL::DSL:0x000000014e151ef0 @uri=#<URI::HTTPS https://kicad-downloads.s3.cern.ch/osx/stable/kicad-unified-6.0.6-1.dmg>, @verified="kicad-downloads.s3.cern.ch/", @using=nil, @tag=nil, @branch=nil, @revisions=nil, @revision=nil, @trust_cert=nil, @cookies=nil, @referer=nil, @header=nil, @user_agent=:default, @data=nil, @specs={:verified=>"kicad-downloads.s3.cern.ch/", :user_agent=>:default}>, @name=["KiCad"], @desc="Electronics design automation suite", @homepage="https://kicad.org/", @livecheck=#<Livecheck:0x000000014e16b080 @package_or_resource=#<Cask::DSL:0x000000014e8a08a0 ...>, @referenced_cask_name=nil, @referenced_formula_name=nil, @regex=/kicad-unified-(\d+(?:.\d+)*)\.dmg/i, @skip=false, @skip_msg=nil, @strategy=nil, @url="https://kicad-downloads.s3.cern.ch/?delimiter=/&prefix=osx/stable/">, @livecheckable=true, @depends_on={:macos=>#<MacOSRequirement: version>="10.15" []>}, @artifacts=#<SortedSet: {...}>, @staged_path=#<Pathname:/opt/homebrew/Caskroom/kicad/6.0.6-1>, @language_eval=nil>>, @source_string="demos", @target_string="/Library/Application Support/kicad/demos", @source=#<Pathname:/opt/homebrew/Caskroom/kicad/6.0.6-1/demos>, @target=#<Pathname:/Library/Application Support/kicad/demos>>, #<Cask::Artifact::Zap:0x000000014e223860 @cask=#<Cask::Cask:0x000000014e980b58 @token="kicad", @sourcefile_path=#<Pathname:/opt/homebrew/Caskroom/kicad/.metadata/6.0.6-1/20220625103751.876/Casks/kicad.rb>, @source="cask \"kicad\" do\n  version \"6.0.6-1\"\n  sha256 \"c72280be9e5233b85a1f6c9295a4753c9954f5f2f45361d539c806fbe0f05966\"\n\n  url \"https://kicad-downloads.s3.cern.ch/osx/stable/kicad-unified-\#{version}.dmg\",\n      verified: \"kicad-downloads.s3.cern.ch/\"\n  name \"KiCad\"\n  desc \"Electronics design automation suite\"\n  homepage \"https://kicad.org/\"\n\n  livecheck do\n    url \"https://kicad-downloads.s3.cern.ch/?delimiter=/&prefix=osx/stable/\"\n    regex(/kicad-unified-(\\d+(?:.\\d+)*)\\.dmg/i)\n  end\n\n  depends_on macos: \">= :catalina\"\n\n  suite \"KiCad\"\n  artifact \"demos\", target: \"/Library/Application Support/kicad/demos\"\n\n  uninstall delete: [\n    \"\#{appdir}/KiCad\",\n    \"/Library/Application Support/kicad/demos\",\n  ]\n\n  zap trash: [\n    \"/Library/Application Support/kicad\",\n    \"~/Library/Application Support/kicad\",\n    \"~/Library/Preferences/kicad\",\n    \"~/Library/Preferences/org.kicad-pcb.*\",\n  ]\nend\n", @tap=nil, @allow_reassignment=false, @block=#<Proc:0x000000014e980a18@/opt/homebrew/Caskroom/kicad/.metadata/6.0.6-1/20220625103751.876/Casks/kicad.rb:1>, @default_config=#<Cask::Config:0x000000014e9809f0 @explicit={}>, @caskroom_path=#<Pathname:/opt/homebrew/Caskroom/kicad>, @metadata_main_container_path=#<Pathname:/opt/homebrew/Caskroom/kicad/.metadata>, @config=#<Cask::Config:0x000000014e989be0 @explicit={}, @default={:languages=>["en-GB"], :appdir=>#<Pathname:/Applications>, :colorpickerdir=>#<Pathname:/Users/XXXX/Library/ColorPickers>, :prefpanedir=>#<Pathname:/Users/XXXX/Library/PreferencePanes>, :qlplugindir=>#<Pathname:/Users/XXXX/Library/QuickLook>, :mdimporterdir=>#<Pathname:/Users/XXXX/Library/Spotlight>, :dictionarydir=>#<Pathname:/Users/XXXX/Library/Dictionaries>, :fontdir=>#<Pathname:/Users/XXXX/Library/Fonts>, :servicedir=>#<Pathname:/Users/XXXX/Library/Services>, :input_methoddir=>#<Pathname:/Users/XXXX/Library/Input Methods>, :internet_plugindir=>#<Pathname:/Users/XXXX/Library/Internet Plug-Ins>, :audio_unit_plugindir=>#<Pathname:/Users/XXXX/Library/Audio/Plug-Ins/Components>, :vst_plugindir=>#<Pathname:/Users/XXXX/Library/Audio/Plug-Ins/VST>, :vst3_plugindir=>#<Pathname:/Users/XXXX/Library/Audio/Plug-Ins/VST3>, :screen_saverdir=>#<Pathname:/Users/XXXX/Library/Screen Savers>}, @env={}>, @dsl=#<Cask::DSL:0x000000014e8a08a0 @cask=#<Cask::Cask:0x000000014e980b58 ...>, @token="kicad", @version="6.0.6-1", @sha256=#<Checksum:0x000000014e8b3ef0 @hexdigest="c72280be9e5233b85a1f6c9295a4753c9954f5f2f45361d539c806fbe0f05966">, @url=#<URL::DSL:0x000000014e151ef0 @uri=#<URI::HTTPS https://kicad-downloads.s3.cern.ch/osx/stable/kicad-unified-6.0.6-1.dmg>, @verified="kicad-downloads.s3.cern.ch/", @using=nil, @tag=nil, @branch=nil, @revisions=nil, @revision=nil, @trust_cert=nil, @cookies=nil, @referer=nil, @header=nil, @user_agent=:default, @data=nil, @specs={:verified=>"kicad-downloads.s3.cern.ch/", :user_agent=>:default}>, @name=["KiCad"], @desc="Electronics design automation suite", @homepage="https://kicad.org/", @livecheck=#<Livecheck:0x000000014e16b080 @package_or_resource=#<Cask::DSL:0x000000014e8a08a0 ...>, @referenced_cask_name=nil, @referenced_formula_name=nil, @regex=/kicad-unified-(\d+(?:.\d+)*)\.dmg/i, @skip=false, @skip_msg=nil, @strategy=nil, @url="https://kicad-downloads.s3.cern.ch/?delimiter=/&prefix=osx/stable/">, @livecheckable=true, @depends_on={:macos=>#<MacOSRequirement: version>="10.15" []>}, @artifacts=#<SortedSet: {...}>, @staged_path=#<Pathname:/opt/homebrew/Caskroom/kicad/6.0.6-1>, @language_eval=nil>>, @directives={:trash=>["/Library/Application Support/kicad", "~/Library/Application Support/kicad", "~/Library/Preferences/kicad", "~/Library/Preferences/org.kicad-pcb.*"], :signal=>[]}>}>
==> Uninstalling artifact of class Cask::Artifact::Uninstall
==> Removing files:
/Applications/KiCad
/usr/bin/sudo -E -- /usr/bin/xargs -0 -- /bin/rm -r -f --
Password:
/Library/Application Support/kicad/demos
/usr/bin/sudo -E -- /usr/bin/xargs -0 -- /bin/rm -r -f --
==> Post-uninstalling artifact of class Cask::Artifact::Uninstall
==> Uninstalling artifact of class Cask::Artifact::Suite
==> Purging files for version 6.0.7-1 of Cask kicad
Error: kicad: It seems the App Suite source '/Applications/KiCad' is not there.
/opt/homebrew/Library/Homebrew/cask/cmd/upgrade.rb:168:in `upgrade_casks'
/opt/homebrew/Library/Homebrew/cmd/upgrade.rb:216:in `upgrade_outdated_casks'
/opt/homebrew/Library/Homebrew/cmd/upgrade.rb:111:in `upgrade'
/opt/homebrew/Library/Homebrew/brew.rb:93:in `<main>'
SMillerDev commented 2 years ago

In your output there is no reference to kicad.app though. Only this line, which only mentions the folder:

Error: kicad: It seems the App Suite source '/Applications/KiCad' is not there.

andrewcrook commented 2 years ago

I have reinstalled see if it happens again on next update

cbenhagen commented 2 years ago

@andrewcrook please re-open. I have the same issue on every update of KiCAD.

andrewcrook commented 2 years ago

@cbenhagen I knew there was an issue! Opened

it something to do with the /Applications/KiCad folder

pwhack commented 2 years ago

I believe this is related: https://github.com/Homebrew/homebrew-cask/issues/126832

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

andrewcrook commented 2 years ago

@cbenhagen I seems to be fixed for me now do you still have the issue?

I am going to close the ticket

@pwhack out of interest do you know if the issue was with the cask or brew ?