Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-1970

Github no longer supports "git://" for git clone

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • None
    • Component/s: None
    • None
    • Needed
    • Hide

      Replace this:

      git clone git://...
      

      With this:

      git clone https://...
      
      Show
      Replace this: git clone git: //... With this: git clone https: //...
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      GODRIVER-2215 Done 1.7.4
      PHPC-1995 Fixed 1.11.1
      PHPLIB-758 Fixed 1.11.0
      CDRIVER-4216 Fixed 1.21.0
      CXX-2411 Works as Designed
      CSHARP-3949 Fixed 2.15.0
      JAVA-4386 Done
      RUBY-2839 Works as Designed
      RUST-1092 Fixed 2.1.0
      SWIFT-1406 Done
      MOTOR-852 Fixed 3.0
      NODE-3736 Fixed 4.2.0
      PYTHON-2990 Fixed 3.12.2, 3.13, 4.0
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion GODRIVER-2215 Done 1.7.4 PHPC-1995 Fixed 1.11.1 PHPLIB-758 Fixed 1.11.0 CDRIVER-4216 Fixed 1.21.0 CXX-2411 Works as Designed CSHARP-3949 Fixed 2.15.0 JAVA-4386 Done RUBY-2839 Works as Designed RUST-1092 Fixed 2.1.0 SWIFT-1406 Done MOTOR-852 Fixed 3.0 NODE-3736 Fixed 4.2.0 PYTHON-2990 Fixed 3.12.2, 3.13, 4.0

      Github no longer supports "git://" for git clone. For example:

      $ git clone git://github.com/mongodb/mongo-python-driver.git
      Cloning into 'mongo-python-driver'...
      fatal: remote error:
        The unauthenticated git protocol on port 9418 is no longer supported.
      Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
      

      This is a problem for various drivers because of how we install drivers-evergreen-tools for testing:

       [2021/11/02 00:02:50.556] + git clone git://github.com/mongodb-labs/drivers-evergreen-tools.git /data/mci/13e4172f3871f20f85385c686d16eb21/src/../drivers-tools
       [2021/11/02 00:02:50.557] Cloning into '/data/mci/13e4172f3871f20f85385c686d16eb21/src/../drivers-tools'...
       [2021/11/02 00:02:50.582] fatal: remote error:
       [2021/11/02 00:02:50.582]   The unauthenticated git protocol on port 9418 is no longer supported.
       [2021/11/02 00:02:50.582] Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
       [2021/11/02 00:02:50.583] Command failed: command encountered problem: error waiting on process '2308aa30-c995-4a50-8c1a-5db7a6298e5d': exit status 128
      

      One fix should be to use https instead:

      git clone https://github.com/mongodb-labs/drivers-evergreen-tools.git $DRIVERS_TOOLS
      

      According to Github: https://github.blog/2021-09-01-improving-git-protocol-security-github/#when-are-these-changes-effective:

      • the first brown out is on November 2, 2021. This explains why it's just started now.
      • the next brown out on January 11, 2022.
      • finally it will be permanently removed on March 15, 2022.

      We'll probably need to make this change in most if not all drivers.

            Assignee:
            Unassigned Unassigned
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: