Skip to content
This repository has been archived by the owner. It is now read-only.

brew install should support installation of formulas from an arbitrary URL #160

Closed
dwalters opened this issue Nov 25, 2009 · 10 comments
Closed

Comments

@dwalters
Copy link
Contributor

@dwalters dwalters commented Nov 25, 2009

It'd be great to be able to take a formula that is in a github fork, a gist, or whatever, and install it directly via the URL.

brew install http://github.com/someuser/homebrew/raw/.../myformula.rb

Obviously there are times where dependencies or stack changes could cause this installation to fail, but it would be much more convenient than tracking and cherry picking changes when you just want to grab a simple formula from someone else's branch.

Perhaps most importantly, it would make it much easier to share updated or tweaked formulas with friends/co-workers who aren't skilled at git branch management.

@pusewicz

This comment has been minimized.

Copy link
Contributor

@pusewicz pusewicz commented Nov 25, 2009

+1

@rrouse

This comment has been minimized.

Copy link

@rrouse rrouse commented Nov 27, 2009

I did something similar to this back in September. mxcl decided against it back then.

I doubt this applies cleanly now, but you're welcome to play with it.

http://github.com/IronDigital/homebrew/commit/d7d6d8bb738ebce30823ddf6377d1c6abfe1364f

@dwalters

This comment has been minimized.

Copy link
Contributor Author

@dwalters dwalters commented Nov 27, 2009

Any idea why he decided against it? I'd definitely prefer an approach that doesn't require a configuration file to be setup, since I'm mainly just wanting the ability to tell people 'run brew install http://...' via IM/twitter/whatever.

My take can be seen here: dwalters/homebrew@http_install

@rrouse

This comment has been minimized.

Copy link

@rrouse rrouse commented Nov 27, 2009

His plan at the time was to use git remotes to get formulas from elsewhere. I'm not sure if that is still the plan now.

My original implementation was running with the idea of having a database out there that you can point homebrew at, similar to an apt source or something.

@mxcl

This comment has been minimized.

Copy link
Member

@mxcl mxcl commented Dec 1, 2009

IronDigital, what you built and the proposal here are quite different. The requested feature is fine by me. I appreciate the efforts that went into your patch nonetheless.

@rrouse

This comment has been minimized.

Copy link

@rrouse rrouse commented Dec 1, 2009

Well, they aren't that different. There are no hard feelings :P.

Your original comments to me sounded like you didn't want HTTP usage at all. Good that you cleared up my mistake.

Thanks! :)

@dwalters

This comment has been minimized.

Copy link
Contributor Author

@dwalters dwalters commented Dec 1, 2009

In that case, updated my branch and sent a pull request, it's dwalters/homebrew@452d9a7 .

It could be a lot cleaner, but would require altering some other things in the internals to get rid of the assumption that a Formula always resides in a file on the local filesystem.

@adamv

This comment has been minimized.

Copy link
Contributor

@adamv adamv commented Jun 5, 2010

@dwalters: If mxcl is OK with this, I can merge, though it would require rebasing against the current version of Homebrew. Alternately, I'm working on an "external commands" branch: http://github.com/adamv/homebrew/tree/external that would allow this to be added as a separate external command rather than as an enhancement to install.

@adamv

This comment has been minimized.

@adamv

This comment has been minimized.

Copy link
Contributor

@adamv adamv commented Oct 30, 2010

Allow installation from URLs

This allows installation like:
brew install http://example.com/something.rb

Based on an original patch by [dwalters].

Closed by 03fa983

Sharpie pushed a commit to Sharpie/homebrew that referenced this issue Sep 19, 2011
This allows installation like:
    brew install http://example.com/something.rb

Based on an original patch by [dwalters].

Fixes Homebrew#160
etehtsea pushed a commit to etehtsea/homebrew that referenced this issue Dec 27, 2011
This allows installation like:
    brew install http://example.com/something.rb

Based on an original patch by [dwalters].

Fixes Homebrew#160
snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this issue Dec 17, 2012
This allows installation like:
    brew install http://example.com/something.rb

Based on an original patch by [dwalters].

Fixes Homebrew#160
ClashTheBunny pushed a commit to ClashTheBunny/homebrew that referenced this issue Jan 22, 2015
Closes Homebrew#160.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.