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.
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.
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.brew update and can still reproduce the problem?brew doctor, fixed all issues and can still reproduce the problem?brew config and brew doctor and included their output with your issue?To help us debug your issue please explain:
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 (Never mind; this now strikes me as entirely unrelated.)brew itself, but with mas as installed by Homebrew from the Homebrew Core tap.
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…)
Most helpful comment
@Henrietta1989 Have you tried running
brew unlink mas && brew link mas?