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

macOS: use 'brew' to upgrade #425

Merged
merged 6 commits into from
Sep 17, 2020

Conversation

derrickstolee
Copy link
Contributor

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 between scalar and scalar-azrepos is detected from the Git version.

Copy link
Member

@mjcheetham mjcheetham left a 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?

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>
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>
@derrickstolee
Copy link
Contributor Author

@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.

Copy link
Member

@mjcheetham mjcheetham left a 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants