EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Github and travis question
From: Torsten Bögershausen via Tech-talk <tech-talk at aps.anl.gov>
To: Mark Rivers <rivers at cars.uchicago.edu>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Tue, 14 Jun 2022 04:14:38 +0000
This is a longish explanation what 
" pip install git+git://github.com/drdoctr/[email protected]" 
means, and why 
" pip install git+https://github.com/drdoctr/[email protected]";
is better.



The line
pip install git+git://github.com/drdoctr/[email protected] 
tells pip to use Git as a version control system (and not svn, hg, bzr).
That is the "git" before the '+'

The second "git" is the protocol:
https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols

Both https and ssh protocols use encryption, but the git protocol does not.
And neither does http (without the s) use encryption.

The http has been used a long time (even when talking to git servers),
but now most web servers are configured to use https only.
In that sense, http has been deprecated.

The  protocol that does not use encryption either is the git protocol.
And using the git protocol is getting more and more deprecated.

For github  we can read here:
<https://github.blog/changelog/2022-03-15-removed-unencrypted-git-protocol-and-certain-ssh-keys/>

Back to pip:

https://pip.pypa.io/en/stable/cli/pip_install/

indicates that 
pip install git+https://github.com/drdoctr/[email protected]
should be used (and that is what is what you do now, Mark)
/Torsten



From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Mark Rivers via Tech-talk <tech-talk at aps.anl.gov>
Reply-To: Mark Rivers <rivers at cars.uchicago.edu>
Date: Monday, 13 June 2022 at 22:40
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Subject: Github and travis question

The .travis.yml file in areaDetector contains these lines:
 
   - pip install git+git://github.com/drdoctr/[email protected]
   - pip install git+git://github.com/michaeljones/[email protected]
   - pip install git+git://github.com/return42/linuxdoc.git
 
This was working OK, but recently the travis builds have been failing with this error:
 
$ pip install git+git://github.com/drdoctr/[email protected]
Collecting git+git://github.com/drdoctr/[email protected]
  Cloning git://github.com/drdoctr/doctr.git (to revision 1.7.4) to /tmp/pip-req-build-7r_gfskr
  Running command git clone --filter=blob:none -q git://github.com/drdoctr/doctr.git /tmp/pip-req-build-7r_gfskr
  fatal: unable to connect to github.com:
  github.com[0: 140.82.113.3]: errno=Connection timed out
 
I don’t understand what the syntax “git+git://github.com/drdoctr/[email protected]” means.  I have used https://github.com for https access and mailto:git at github.com for ssh access, but I have not seen git://github.com outside of this travis script. Can someone explain?  
 
I found that if I replace git:// with https:// it works.
 
   - pip install git+https://github.com/drdoctr/[email protected]
   - pip install git+https://github.com/michaeljones/[email protected]
   - pip install git+https://github.com/return42/linuxdoc.git
 
What the difference between git:// and https:// is, and is OK to make this change?
 
Thanks,
Mark
 


References:
Github and travis question Mark Rivers via Tech-talk

Navigate by Date:
Prev: Re: Github and travis question Pete Jemian via Tech-talk
Next: Open positions in Controls @ PSI Celcer Tine (PSI) via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
Navigate by Thread:
Prev: Re: Github and travis question Pete Jemian via Tech-talk
Next: Open positions in Controls @ PSI Celcer Tine (PSI) via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·