Brew: Installation brakes when updated

Created on 16 Oct 2018  Â·  4Comments  Â·  Source: Homebrew/brew

I updated "mas" to 1.4.1 and now my script don't work. It's because my script has full path to mas.

/usr/local/Cellar/mas/1.4.1/bin/mas list

Why i can't just use

mas list

Then it would work always no matter what version number is.

outdated

Most helpful comment

@Henrietta1989 Have you tried running brew unlink mas && brew link mas ?

All 4 comments

Don't forget:

Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.

  • [ ] are reporting a bug others will be able to reproduce and not asking a question. If you're not sure or want to ask a question do so on our Discourse: https://discourse.brew.sh
  • [ ] ran a brew command and reproduced the problem with multiple formulae? If it's a problem with a single, official formula (not cask) please file this issue at Homebrew/homebrew-core: https://github.com/Homebrew/homebrew-core/issues/new/choose. If it's a brew cask problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.
  • [ ] ran brew update and can still reproduce the problem?
  • [ ] ran brew doctor, fixed all issues and can still reproduce the problem?
  • [ ] ran brew config and brew doctor and included their output with your issue?

To help us debug your issue please explain:

  • What you were trying to do (and why)
  • What happened (include command output)
  • What you expected to happen
  • Step-by-step reproduction instructions (by running brew commands)

:wink:

@Henrietta1989, CC @MindTooth:

     For what it's worth, this may have something to do with an issue known both upstream and in the context of Homebrew Bundle: see Homebrew/homebrew-bundle#370 (particularly this comment on it and those following it,) as well as mas-cli/mas#164, for details. As far as I understand it, the issues this problem causes are already handled well enough in Homebrew Bundle for that tool's users as of the merger of Homebrew/homebrew-bundle#374. In any case, this is not an issue with brew itself, but with mas as installed by Homebrew from the Homebrew Core tap. (Never mind; this now strikes me as entirely unrelated.)
     Be that as it may, however, @MindTooth is right to point out that you shouldn't have overlooked the issue template: in particular, it specifically states that issues with specific individual formulas should be filed with their host tap. Furthermore, since you haven't reported that the mas formula's associated package installed incorrectly, I further suspect that this issue, as you've filed it, likely has more to do with your script relying on tool implementation details that upstream has found itself unable to guarantee not breaking; upstream _may_ be able to point out ways you could work around this, but you'll probably have to adapt your script regardless, but that could still be the case; as @GauthamGoli later stated below, please check that mas not being correctly linked to from a location in your $PATH; this issue would be reported by brew doctor and could be fixed by running brew link mas. I therefore wouldn't be at all surprised if this issue was summarily closed by brew's maintainers as being irrelevant.

@Henrietta1989 Have you tried running brew unlink mas && brew link mas ?

     Thanks, @GauthamGoli; that could far more likely solve @Henrietta1989's issue. I've edited my earlier post to reflect this. (Sorry for initially butting in with something that probably has nothing to do with problems here; lurking as usual, I saw it the other day last week while the linked issues/PRs were still brewing — pardon the pun — and rushed to conclusions by mistake. I'll step out now…)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JustinTArthur picture JustinTArthur  Â·  3Comments

cdekok picture cdekok  Â·  4Comments

VagelisD picture VagelisD  Â·  3Comments

kirk86 picture kirk86  Â·  3Comments

DomT4 picture DomT4  Â·  3Comments