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
Add option to plugin install
for local plugins
#3209
Comments
@kerrizor could you give more specifics about "mixed success"? I had a look a the code, and a solution; I was wondering if the proposed |
I've just reviewed my PR, and found that the bin/bundle plugin install --git '/home/myuser/workspace/bundler dependency graph' bundler-dependency_graph So definitely need a test case from @kerrizor (unless I'm missing something obvious 🤔 😄). For reference, I've tested this from master (007a173). |
@saveriomiroddi I honestly don't recall what I meant by "mixed success" - it was a year ago! Perhaps it is related to the the issue I mentioned in rubygems/bundler#5446 ? IIRC even the The use of |
@kerrizor given that the form $ bundle plugin install --help
Options:
[--git=URL (`https://` or `git@`) or local path (`/path/to/repo`) of the git repo to fetch from] would work. Of course, it assumes that the dev actually read the help 😄 However, usability is king, so I'm neutral to this. |
hhhhuuuuhhhh I swear it didn't work when @roseaboveit and I were working on this, but again, it's been > a year! |
@kerrizor just to make it clear, with this:
I wasn't referring to you - I was trying to figure out a real-world case where the strategy of enhancing the help (opposed to introducing a new option) would fail, and I thought a case would be that of a hypothetical user reading the options, but not their help. Sorry if there was a misunderstading 😄. |
@saveriomiroddi no worries! I was laughing a bit at myself. :) |
I've also had "mixed success" with the "Running your plugin locally" section of the How to write a Bundler plugin instructions.
The instructions do not say anything about this mysterious Using |
I ran into this when working on bundler-dependency_graph
bundle plugin
currently supports--git
and--source
(rubygems) options, which both expect a URL. I had mixed success providing it with afile://
URL, but a full-fledged--file
option that accepted a filepath would've sped things along.The text was updated successfully, but these errors were encountered: