Skip to content

Upgrade fails with untrusted Homebrew tap error #368

@garrytrinder

Description

@garrytrinder

Description

When upgrading Dev Proxy via the Dev Proxy Toolkit extension, the upgrade fails with an untrusted tap error.

Error message

Failed to upgrade Dev Proxy: exec error: Error: Command failed: brew upgrade dev-proxy
Error: Refusing to load formula dotnet/dev-proxy/dev-proxy from untrusted tap dotnet/dev-proxy.
Run `brew trust --formula dotnet/dev-proxy/dev-proxy` or `brew trust dotnet/dev-proxy` to trust it.
stderr: Error: Refusing to load formula dotnet/dev-proxy/dev-proxy from untrusted tap dotnet/dev-proxy.
Run `brew trust --formula dotnet/dev-proxy/dev-proxy` or `brew trust dotnet/dev-proxy` to trust it.

Screenshot

Error screenshot

Steps to reproduce

  1. Install Dev Proxy via Homebrew
  2. Open VS Code with the Dev Proxy Toolkit extension
  3. Attempt to upgrade Dev Proxy when a new version is available

Expected behavior

Dev Proxy should upgrade successfully.

Actual behavior

Upgrade fails because Homebrew requires the dotnet/dev-proxy tap to be explicitly trusted before it will load formulas from it.

Possible fix

Before running brew upgrade dev-proxy, run brew trust dotnet/dev-proxy to trust the tap, or inform the user to trust the tap manually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions