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

set https to the default protocol for git #6791

Closed
wants to merge 3 commits into from

Conversation

colby-swandale
Copy link
Member

This PR is setting Git gems to be fetched over https by default.

See #6785

@segiddins
Copy link
Member

segiddins commented Nov 17, 2018

This breaks the 1.x specs... maybe it should be turned into a feature flag?

@colby-swandale
Copy link
Member Author

Yea, i wasn't really sure what to do about this but a feature flag sounds ideal.

@colby-swandale colby-swandale force-pushed the colby/git-https-default branch from 9064ed2 to b5c62a0 Compare November 19, 2018 11:59
Copy link
Member

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've longed for this change!

lib/bundler/dsl.rb Outdated Show resolved Hide resolved
spec/bundler/dsl_spec.rb Outdated Show resolved Hide resolved
olleolleolle and others added 2 commits November 20, 2018 06:13
Co-Authored-By: colby-swandale <[email protected]>
Co-Authored-By: colby-swandale <[email protected]>
@deivid-rodriguez
Copy link
Member

Hi! I haven't looked at the CI failures, but the new feature flag and the setting github.https seem redundant to me. Can we instead change the default value of the github.https setting in bundler 2 by making it a feature flag and making it have the bundler_2_mode value?

Also, the deprecation warning does not makes a lot of sense right now. We're saying that this setting will be deprecated but introducing another one that does the same thing. I think we want to delay the deprecation horizon to bundler 3.

Finally, I see two directions here but I'm not sure which one we're heading to:

  • Completely remove the github: option. I thought this was what we were doing and instead we were encouraging users to include the shortcuts they need (for github or other similar systems) right in the Gemfile. This is what Create Gemfiles with an HTTPS github source defined #5728 explains.

  • Keep the github option but change the default to https.

Are we doing the latter for bundler 2, and still planning the former for later versions, or are we only doing the latter?

@colby-swandale
Copy link
Member Author

colby-swandale commented Nov 20, 2018

Hi! I haven't looked at the CI failures, but the new feature flag and the setting github.https seem redundant to me. Can we instead change the default value of the github.https setting in bundler 2 by making it a feature flag and making it have the bundler_2_mode value?

But github.https can't be a feature flag unless we change the config name.

Also, the deprecation warning does not makes a lot of sense right now. We're saying that this setting will be deprecated but introducing another one that does the same thing. I think we want to delay the deprecation horizon to bundler 3.

Keep in mind that master is still accepting pull requests for Bundler 1 and is still only v2. The feature flags won't be bumped to Bundler 3 until after 2.0.0 has been released. When i merge this into 2-0-stable i will adjust the version being used in the major deprecation.

Are we doing the latter for bundler 2, and still planning the former for later versions

Correct, for Bundler 2 we're using https by default to fix a security problem people have been needing to adjust their Gemfile for. But we're also thinking about removing it in a future major release.

@segiddins
Copy link
Member

We can definitely use github.https as a feature flag name, I think you’ll just need to manually construct the accessor method for it

@colby-swandale
Copy link
Member Author

colby-swandale commented Nov 20, 2018

hmm i would prefer to avoid doing that but i will adjust it

@colby-swandale colby-swandale deleted the colby/git-https-default branch November 20, 2018 12:40
ghost pushed a commit that referenced this pull request Nov 26, 2018
6798: Use https in the Github shortcut by default in Bundler 2 r=colby-swandale a=colby-swandale

This PR is setting Git gems to be fetched over https by default.

Note: This PR is successing #6791 

Closes #6785 

Co-authored-by: Colby Swandale <[email protected]>
colby-swandale pushed a commit that referenced this pull request Nov 27, 2018
6798: Use https in the Github shortcut by default in Bundler 2 r=colby-swandale a=colby-swandale

This PR is setting Git gems to be fetched over https by default.

Note: This PR is successing #6791

Closes #6785

Co-authored-by: Colby Swandale <[email protected]>
(cherry picked from commit cf45792)
colby-swandale pushed a commit that referenced this pull request Dec 11, 2018
6798: Use https in the Github shortcut by default in Bundler 2 r=colby-swandale a=colby-swandale

This PR is setting Git gems to be fetched over https by default.

Note: This PR is successing #6791 

Closes #6785 

Co-authored-by: Colby Swandale <[email protected]>
(cherry picked from commit cf45792)
colby-swandale pushed a commit that referenced this pull request May 28, 2019
6798: Use https in the Github shortcut by default in Bundler 2 r=colby-swandale a=colby-swandale

This PR is setting Git gems to be fetched over https by default.

Note: This PR is successing #6791

Closes #6785

Co-authored-by: Colby Swandale <[email protected]>
(cherry picked from commit cf45792)
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.

4 participants