An open API service indexing awesome lists of open source software.

https://github.com/nikitabobko/brew-install-path

Simple script that allows installing homebrew formulas/casks from paths
https://github.com/nikitabobko/brew-install-path

brew homebrew mac macos

Last synced: about 2 months ago
JSON representation

Simple script that allows installing homebrew formulas/casks from paths

Awesome Lists containing this project

README

          

# brew-install-path

Homebrew 4.6.4 introduced a breaking change that disabled the possibility of installing formulas/casks from paths.

- [Homebrew Breaking change Issue](https://github.com/Homebrew/brew/issues/18371)
- [Homebrew Breaking change PR](https://github.com/Homebrew/brew/pull/20414)
- [Homebrew 4.6.4 Release notes](https://github.com/Homebrew/brew/releases/tag/4.6.4)

[The official workaround](https://github.com/Homebrew/brew/issues/18371#issuecomment-2365396463) is to create a local tap and move your ruby file there,
which is obnoxious to do manually every time.
`brew-install-path` automates this by allowing you to install local paths in one command.

## Installation

```
brew install nikitabobko/tap/brew-install-path
```

## Usage

After installing `brew-install-path`, you can do the following:

```
brew install-path ./formula-or-cask.rb
brew ip ./formula-or-cask.rb
```

Formulas/Casks installed by `brew-install-path` are no different from other formulas/casks and can be uninstalled as usual by `brew uninstall`.

## Synopsis

```
Usage: brew install-path [-h|--help] [-v|--version] [--cask|--formula] [OTHER_OPTIONS]... [--] ...

Options:
-h, --help Print this help and exit
-v, --version Print version and exit
--cask Treat all named arguments as casks
--formula, --formulae Treat all named arguments as formulas

All other options are forwarded to 'brew install'
```

## Disclaimer

`brew-install-path` is written by somebody who ["demonstrates their lack of understanding of Homebrew works"](https://github.com/Homebrew/brew/issues/18371#issuecomment-3233910856), use at your own risk.

If you found this script to be useful, keep in mind that your workflow is [probably "broken" and you should reevaluate using it](https://github.com/orgs/Homebrew/discussions/6351#discussioncomment-14257503).
Also, please note that by using this script, you are actively "wasting the limited time" of precious homebrew volunteers.

Thank you for your understanding.