Coder Social home page Coder Social logo

git does not work on OSX. about cmsdist HOT 4 CLOSED

cms-sw avatar cms-sw commented on September 27, 2024
git does not work on OSX.

from cmsdist.

Comments (4)

ktf avatar ktf commented on September 27, 2024

Workaround for the moment is:

export PATH=/usr/bin:$PATH

to pick up system git, which does not have the problem.

from cmsdist.

davidlt avatar davidlt commented on September 27, 2024

The problem is understood. On Darwin cURL is modified to use Keychain, thus Certification Authority certificates are not available on the system. This does not allow cURL/GIT to verify any HTTPS communication.

We have two options:

  1. Add GIT_SSL_NO_VERIFY=true which disables HTTPS verification, kinda "trust all" mode.
  2. A script is included into cURL library to download from Mozilla (NSS) Certification Authority certificates and generate ca-bundle.crt. Such should be shipped with cURL/GIT/different package and set GIT_SSL_CAPATH and/or GIT_SSL_CAINFO.

Both work:

GIT_SSL_NO_VERIFY=true git clone https://github.com/cms-sw/cms-git-tools.git
GIT_SSL_CAPATH=$PWD GIT_SSL_CAINFO=ca-bundle.crt git clone https://github.com/cms-sw/cms-git-tools.git

To be safe I would go w/ 2 and put ca-bundle.crt into a GIT package.

from cmsdist.

ktf avatar ktf commented on September 27, 2024

As discussed, whatever we do should work also with the CERN CA.

from cmsdist.

davidlt avatar davidlt commented on September 27, 2024

Solved for CMSSW_6_2_0 and above.

from cmsdist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.