Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

brew upgrade fails if not in home directory #342

Open
jms1voalte opened this issue May 4, 2022 · 0 comments
Open

brew upgrade fails if not in home directory #342

jms1voalte opened this issue May 4, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@jms1voalte
Copy link

Describe the Bug

brew upgrade fails unless run while cd'd into home directory

Expected Behavior

Running brew upgrade should upgrade the cask, regardless of what directory you happen to be in.

Steps to Reproduce

Failed:

(jms1@supermini) 64 ~/git $ brew upgrade
==> Casks with 'auto_updates true' or 'version :latest' will not be upgraded; pass `--greedy` to upgrade them.
==> Upgrading 1 outdated package:
puppetlabs/puppet/puppet-agent 7.15.0 -> 7.16.0
==> Upgrading puppet-agent
==> Downloading https://downloads.puppet.com/mac/puppet/12/x86_64/puppet-agent-7.16.0-1.osx12.dmg
Already downloaded: /Users/jms1/Library/Caches/Homebrew/downloads/e5d59c91cef4bbc108cb53ef1d00f3f8aa0ce2c0af69a388c4ce61b752ef2564--puppet-agent-7.16.0-1.osx12.dmg
==> Removing launchctl service puppet
Unload failed: 5: Input/output error
Try running `launchctl bootout` as root for richer errors.
rm: puppet: is a directory
==> Purging files for version 7.16.0 of Cask puppet-agent
Error: puppetlabs/puppet/puppet-agent: Failure while executing; `/bin/rm -f -- puppet` exited with 1. Here's the output:
rm: puppet: is a directory

Successful, after cd'ing to home directory

(jms1@supermini) 65 ~/git $ cd
(jms1@supermini) 66 ~ $ brew upgrade
==> Casks with 'auto_updates true' or 'version :latest' will not be upgraded; pass `--greedy` to upgrade them.
==> Upgrading 1 outdated package:
puppetlabs/puppet/puppet-agent 7.15.0 -> 7.16.0
==> Upgrading puppet-agent
==> Downloading https://downloads.puppet.com/mac/puppet/12/x86_64/puppet-agent-7.16.0-1.osx12.dmg
Already downloaded: /Users/jms1/Library/Caches/Homebrew/downloads/e5d59c91cef4bbc108cb53ef1d00f3f8aa0ce2c0af69a388c4ce61b752ef2564--puppet-agent-7.16.0-1.osx12.dmg
==> Removing launchctl service puppet
==> Removing launchctl service pxp-agent
==> Uninstalling packages; your password may be necessary:
com.puppetlabs.puppet-agent
==> Running installer for puppet-agent; your password may be necessary.
Package installers may write to any location; options such as `--appdir` are ignored.
installer: Package name is puppet-agent
installer: Installing at base path /
installer: The install was successful.
==> Purging files for version 7.15.0 of Cask puppet-agent
🍺  puppet-agent was successfully upgraded!

Environment

  • macOS 12.3.1
  • Upgrading puppet-agent cask from 7.15.0 to 7.16.0

Additional Context

Not sure what other information I can/should add, I guess let me know what you need?

@jms1voalte jms1voalte added the bug Something isn't working label May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant