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
New brew upgrade/reinstall --cask does not honour --no-quarantine #9139
Comments
Does dropping the Also see Homebrew/homebrew-cask#87045 for more information. |
Maybe - but I have to separate casks from regular updates as I use home-brew usually without admin rights. So I run only cask updates in an admin-User (with the terrible permission update problems). |
Pulling in @Homebrew/cask for thoughts/fixes. |
Using So what happens if you |
@vitorgalvao agreed. But in upgrade it will, right? |
Not when you give it an argument of what to upgrade (which in this case you’re doing). Think of the |
@vitorgalvao I see, My problem is: once I upgrade and only one cask that needs admin rights is in the outdated list, my scripts fail sometime in the list as I have no sudo right. So I restrict it with —cask (no cask name, above was a sample to demonstrate the error) and run it in the Admin account. I did not know —formula. Good news. |
But can you try the |
@vitorgalvao sure.
Dialog is shown. |
@logopk does running:
make a difference? |
Seems so:
Important to note, that this happens only if it was quarantined before
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Hi, I'm reproducibly running into this issue as well. I have installed sapmachine11-ea-jdk from https://github.com/SAP/homebrew-SapMachine/. I need to update this every week. I used to do "brew cask upgrade --no-quarantine" which worked fine. Now, since brew cask upgrade is locked, I need to do "brew upgrade --cask --no-quarantine" which will install the updated cask without disablingthe gatekeeper. A "brew reinstall sapmachine11-ea-jdk --no-quarantine" will fix this. Or, alternatively, it seems to work when I set HOMEBREW_CASK_OPTS to "--no-quarantine". I'd really love if this could be fixed. Thanks |
We never disable Gatekeeper.
That directly contradicts the report in this issue. Are you sure that’s what you meant?
There’s a reason this is still open: it’s a valid bug report but we did not have the chance to get to it. We take pull requests, if you’re so inclined. Otherwise it’s uncertain when we’ll get to it; it’s low priority. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There’s no reason to think this bug doesn’t occur in all macOS versions. It’s not a macOS bug, it’s ours, so please comment if it doesn’t occur in a specific macOS version (which would be weird), not if it does (which would not). |
Sorry, I probably used the wrong wording here. I said that because when I do a `brew install --cask --no-quarantine sapmachine11-ea-jre", I can see the warning "macOS's Gatekeeper has been disabled for this Cask". Having said that, I just tested this install command again and it installed my cask fine without quarantine. I can run java -version.
I'm pretty sure it is. I'll test this later this week when there will be an update for sapmachine11-ea-jdk/jre and report here.
Sure. :) Unfortunately I'm not so much into the brew source code and ruby and my time also doesn't permit digging deeper. So, priority is all fine given that HOMEBREW_CASK_OPTS to "--no-quarantine" or "brew reinstall --no-quarantine" help. I was just worried since I had "brew cask upgrade --no-quarantine" working before and now this got locked out in favor of "brew upgrade --cask --no-quarantine" which obviously doesn't honor --no-quarantine correctly at the moment. Thanks for your great efforts with brew :) |
OK, I have to correct myself. "brew reinstall --no-quarantine" does not work (as reported). The current workaround is HOMEBREW_CASK_OPTS. |
This bug is only partially resolved—for the reinstall case, not the upgrade case. Please reopen. |
I can confirm that. reinstall --no-quarantine works now but ugrade --no-quarantine doesn't. |
issue was raised in Homebrew#9139 for upgrade/reinstall --cask and was then closed by Homebrew#10284. Issue is that Homebrew#10284 only actually fixed the reinstall command, leaving behindd the 'upgrade' one which this now fixes. Signed-off-by: António Meireles <antonio.meireles@reformi.st>
Bug report
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 update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?brew config
andbrew doctor
and included their output with your issue?What you were trying to do (and why)
brew upgrade --cask --no-quarantine [google-chrome]
to reproduce with the now upgraded version, see what happens on:
brew reinstall --cask --no-quarantine --debug --verbose google-chrome
while
brew install --cask --no-quarantine --debug --verbose google-chrome
works fine and does not quarantine Chrome (or any other Cask)
What happened (include command output)
Cask is not released from quarantine!
Command output
see old deprecated command:
What you expected to happen
Google Chrome is not quarantined and starts without the warning (on every launch)
Step-by-step reproduction instructions (by running
brew
commands)brew install --cask --no-quarantine google-chrome -> shows no GateKeeper warning
...anytime later
brew upgrade --cask --no-quarantine [google-chrome] -> shows GateKeeper warning
brew reinstall --cask --verbose --debug --no-quarantine google-chrome -> shows GateKeeper warning
compare this to
brew cask reinstall --verbose --debug --no-quarantine google-chrome -> does not show GateKeeper warning
Output of
brew config
andbrew doctor
commandsThe text was updated successfully, but these errors were encountered: