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

Use https in the Github shortcut by default in Bundler 2 #6798

Merged
1 commit merged into from
Nov 26, 2018

Conversation

colby-swandale
Copy link
Member

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

Note: This PR is successing #6791

Closes #6785

@colby-swandale
Copy link
Member Author

Note that for this to me merged into master i couldn't check for https outside of the :bundler => "< 2" scope. But this can be cleaned up once 2.0.0 is released.

@colby-swandale colby-swandale force-pushed the colby/git-https-default branch 2 times, most recently from e693896 to 15173fa Compare November 22, 2018 09:58
@@ -35,6 +35,7 @@ class Settings
frozen
gem.coc
gem.mit
github_https
Copy link
Member

Choose a reason for hiding this comment

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

This is the list of settings, not feature flags, so the . should be used here, right?

@colby-swandale colby-swandale force-pushed the colby/git-https-default branch 2 times, most recently from 96216eb to 332741a Compare November 23, 2018 04:51
@colby-swandale colby-swandale force-pushed the colby/git-https-default branch 4 times, most recently from 0cbfa40 to 0718454 Compare November 23, 2018 11:20
@@ -64,6 +64,12 @@ def initialize(bundler_version)
@bundler_version = Gem::Version.create(bundler_version)
end

def github_https
Copy link
Member

Choose a reason for hiding this comment

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

github_https?

Copy link
Member

Choose a reason for hiding this comment

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

This could also probably be

settings_method(:github_https?, "github.https") { bundler_2_mode? }

That way you don't have to replicate the logic

Copy link
Member Author

Choose a reason for hiding this comment

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

oh awesome, i didn't realize that. Thanks!

@colby-swandale colby-swandale force-pushed the colby/git-https-default branch from 0718454 to 93471b0 Compare November 24, 2018 20:58
@colby-swandale
Copy link
Member Author

@bundlerbot r+

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]>
@ghost
Copy link

ghost commented Nov 26, 2018

Build succeeded

@ghost ghost merged commit 93471b0 into master Nov 26, 2018
@ghost ghost deleted the colby/git-https-default branch November 26, 2018 23:44
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 added a commit that referenced this pull request Dec 11, 2018
* 1-17-stable:
  Version 1.17.2 with changelog
  Merge #6798
  Merge #6818
  Merge #6786
  Merge #6743
  Merge #6742
  Merge #6740
  Merge #6834
  Merge pull request #6752 from bundler/indirect/backport-6737
@knu knu mentioned this pull request Jan 7, 2019
@colby-swandale colby-swandale added this to the 2.0.0 milestone Feb 25, 2019
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)
ghost pushed a commit that referenced this pull request Jun 10, 2019
7182: Merge #6798 into `2-0-stable` r=colby-swandale a=colby-swandale

### What was the end-user problem that led to this PR?

The PR #6798 was not merged correctly in the `2.0.0` release. This was my fault. This PR resolves this.

### What is your fix for the problem, implemented in this PR?

Re-merge the PR back into the `2-0-stable` branch.

Co-authored-by: Bundlerbot <[email protected]>
Co-authored-by: Colby Swandale <[email protected]>
colby-swandale added a commit that referenced this pull request Jun 12, 2019
Merge #6798 into `2-0-stable`
colby-swandale added a commit that referenced this pull request Jun 13, 2019
* 2-0-stable: (89 commits)
  fix changelog 2.0.2 typos
  add v2.0.2 changelog
  bump version to 2.0.2
  Merge #7199
  fix bug where bundler v3 is running a test for bundflet 2
  Merge #6798
  add bors configuation
  port GemHelper from master
  Merge #7080
  Merge #7089
  Merge #7068
  Merge #7036
  Merge #7067
  change Bundler 3 specs in travis to use RubyGems 3.0.3
  bump RubyGems v3 to the latest version on Travis
  Merge #6963
  Merge #7078
  Merge pull request #7061 from bundler/fix_circular_requires
  Merge #6864
  remove linting step in travis (it will still run in each build)
  ...
@jordanmichaelrushing
Copy link

jordanmichaelrushing commented Jun 13, 2019

Well that latest merge just screwed us over for about 5 hours. If there's any googlers out there with deployments that are now all of a sudden broken, it's because your source is changing from git to https on deployment and your local was expecting git. So rebuild your gemfile.lock again locally and you should be fine.
Specifically locally I changed any instance of github: to git:and re bundled. But as long as you rebundle locally, you should be fine. Your mileage may very. GL

@indirect
Copy link
Member

@jordanmichaelrushing Hi.

First, the meta: we have a code of conduct, and the language in your message isn't okay. Please reword your message to be less shitty towards the people who put a huge amount of effort into providing you with Bundler, for free.

Second, to your point about "sudden" breakage: Bundler has been printing out warnings about this change for literally years. More than one. Your application may have broken suddenly, in a way that surprised you, but this change in Bundler was not sudden.

@rubygems rubygems locked and limited conversation to collaborators Jun 14, 2019
This pull request was closed.
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.

Change github to HTTPS in Bundler 2+
5 participants