Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

[SourceList] Warn when adding a git source using the git procotol#3453

Closed
segiddins wants to merge 2 commits intorubygems:masterfrom
segiddins:seg-warn-for-git-protocol
Closed

[SourceList] Warn when adding a git source using the git procotol#3453
segiddins wants to merge 2 commits intorubygems:masterfrom
segiddins:seg-warn-for-git-protocol

Conversation

@segiddins
Copy link
Copy Markdown
Contributor

Closes #3448.

@TimMoore
Copy link
Copy Markdown
Contributor

TimMoore commented Mar 3, 2015

Thanks! 💙

Couple of things 😄

  1. The tests are failing now
  2. I was thinking we should say something different for people using the github shortcut, since they might not know that it's using a git protocol URL, or that they can redefine the shortcut

So I think the best place to issue the warnings is from dsl.rb, but it will take a bit of refactoring to make it possible to issue different warnings for github vs git.

@segiddins segiddins force-pushed the seg-warn-for-git-protocol branch from 1a8b7ea to 04af1b9 Compare March 3, 2015 21:34
@segiddins
Copy link
Copy Markdown
Contributor Author

I don't have the time to do that sort of refactor at the moment, but I think I fixed the test failures.

@indirect
Copy link
Copy Markdown

indirect commented Apr 1, 2015

Maybe in the meantime we should add a github_https option? Basically I would like to deprecate github immediately, but we can't. :(

@TimMoore
Copy link
Copy Markdown
Contributor

TimMoore commented Apr 1, 2015

I'd like to deprecate all built-in shortcuts. I think the translation logic needs to be explicit in the Gemfile, because we can never change it in Bundler without breaking things.

@indirect
Copy link
Copy Markdown

indirect commented Apr 1, 2015

I feel like I'm probably okay with https shortcuts because they seem very unlikely to change in the future, and work for both public and private repos... but famous last words, maybe. :P

Github is such a common case that it seems completely valid to have that one built in, but I think we should drop everything else in 2.0, and document the shortcut DSL better.

@indirect
Copy link
Copy Markdown

indirect commented May 3, 2015

Ready to merge this as soon as the tests pass and there is a conflig flag to disable it (and mention the config flag in the warning).

@segiddins segiddins force-pushed the seg-warn-for-git-protocol branch from 04af1b9 to 68eabed Compare May 4, 2015 05:21
@segiddins
Copy link
Copy Markdown
Contributor Author

Done

@pducks32
Copy link
Copy Markdown
Contributor

pducks32 commented May 4, 2015

The flags have to be set as booleans in settings.rb in order to be returned as true. It's fine for true because everything resolves to true but for false it will return "false" which is true.

@segiddins
Copy link
Copy Markdown
Contributor Author

@indirect it looks like this has been cherry-picked into 1-99-dev already?

@indirect
Copy link
Copy Markdown

Yup, thanks!

stefanlance pushed a commit to stefanlance/bundler that referenced this pull request Aug 15, 2015
segiddins pushed a commit that referenced this pull request Jul 1, 2016
segiddins pushed a commit that referenced this pull request Jul 3, 2016
segiddins pushed a commit that referenced this pull request Jul 5, 2016
segiddins pushed a commit that referenced this pull request Jul 5, 2016
@segiddins segiddins deleted the seg-warn-for-git-protocol branch September 28, 2016 16:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warn on git protocol URLs

4 participants