brew extract for formula in taps other than core

Created on 10 Mar 2019  路  1Comment  路  Source: Homebrew/brew

A detailed description of the proposed feature

Currently brew extract only works for formulae in core tap. Would be cool if this works for those in other taps as well. Tap where the formula is extracted from may be specified via a --from argument. Another thing to consider is the tap where the formula is extracted to should be one different from the --from tap and also different from core. I would be happy to submit a pull request.

The motivation for the feature

I have been a fan of the very useful but quite obscure brew extract. Today I wanted to checkout an older version of coursier and realized it is not possible.

How the feature would be relevant to at least 90% of Homebrew users

I would argue that it is as relevant as how the current brew extract is relevant. The ability to install an older version of software should not apply only to core. This would be useful for taps that provide formulae for science-related software such as OSGeo/homebrew-osgeo4mac and brewsci/homebrew-bio when people need to install specific versions of the tools in order to reproduce results in a paper (I actually ran into this problem before when I needed older versions of bamtools and samtools when they were in homebrew-science).

What alternatives to the feature have been considered

Edit the formula/git checkout an old commit myself I guess.

help wanted outdated

Most helpful comment

The relevant lines to be changed are here:

https://github.com/Homebrew/brew/blob/d8c6f6b12075a06a9837f6fce920ccd07a36ca4c/Library/Homebrew/dev-cmd/extract.rb#L104-L109

Feel free to open a pull request adding this feature, and if you need guidance we can help you through any questions you might have.

>All comments

The relevant lines to be changed are here:

https://github.com/Homebrew/brew/blob/d8c6f6b12075a06a9837f6fce920ccd07a36ca4c/Library/Homebrew/dev-cmd/extract.rb#L104-L109

Feel free to open a pull request adding this feature, and if you need guidance we can help you through any questions you might have.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mislav picture mislav  路  3Comments

rtobrien picture rtobrien  路  3Comments

kirk86 picture kirk86  路  3Comments

fooness picture fooness  路  4Comments

vitahlin picture vitahlin  路  4Comments