-
Notifications
You must be signed in to change notification settings - Fork 67
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
macOS: use 'brew' to upgrade #425
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to detect which cask we are based on the Git version? I think it might be better and more robust to ask Homebrew which cask flavour is installed (and if none are installed, tell the user "this wasn't installed by Homebrew" (and perhaps a command telling them how to install the brew version).
Thoughts?
f76170f
to
a0c2315
Compare
Preparation for creating 'brew' integration. Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
We don't have "Waiting for GVFS lock" or upgrade reminders as part of our Git processes. This carry-over from VFS for Git can be deleted. Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
a0c2315
to
175ae07
Compare
First, move the tracer construction to earlier in the verb. Then, redirect all upgrade logic away from the upgrader scaffolding in favor of simple process calls to 'brew'. Use the Git version to detect if we are in the 'scalar' or 'scalar-azrepos' cask. Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
175ae07
to
d8eda7f
Compare
@mjcheetham: I pushed a new version recently that I think answers your "this isn't installed by homebrew" question. Please take a look when you can. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
We are transitioning our entire install and upgrade story to Homebrew on macOS. Update our
scalar upgrade
verb to match.Each commit does some cleanup until the last one which does the heavy lifting.
The
scalar upgrade
command will now run two commands:brew update
to get the latest Homebrew formulas and casks.brew upgrade --cask scalar[-azrepos]
to actually upgrade. The difference betweenscalar
andscalar-azrepos
is detected from the Git version.