SSAGESproject / SSAGES

Software Suite for Advanced General Ensemble Simulations
GNU General Public License v3.0
81 stars 28 forks source link

Downloading lammps using git #40

Closed kaustubhjsawant closed 2 years ago

kaustubhjsawant commented 2 years ago

Hello,

I am trying to build ssages with lammps using the following commands :

mkdir build && cd build
cmake -DLAMMPS=YES ..
make

However as of Jan. 11th, 2022, Git has changed its security protocol. (https://github.blog/2021-09-01-improving-git-protocol-security-github/#no-more-unauthenticated-git). Therefore I am getting the following error :

Error

[ 40%] Performing download step (git clone) for 'lammps-download'
Cloning into 'lammps-download'...
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.
Cloning into 'lammps-download'...
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.
Cloning into 'lammps-download'...
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.
-- Had to git clone more than once:
          3 times.
CMake Error at /depot/jgreeley/apps/SSAGES-0.9.3-alpha/build/hooks/lammps/lammps-download-prefix/tmp/lammps-download-gitclone.cmake:40 (message):
  Failed to clone repository: 'git://github.com/lammps/lammps.git'

make[2]: *** [hooks/lammps/lammps-download-prefix/src/lammps-download-stamp/lammps-download-download] Error 1
make[1]: *** [hooks/lammps/CMakeFiles/lammps-download.dir/all] Error 2
make: *** [all] Error 2

Thank you, Kaustubh

mquevill commented 2 years ago

GitHub deprecated the use of git:// URLs. The functionality should be fixed if you replace it with https:// in the file hooks/lammps/CMakeLists.txt. All other repositories already use the https:// protocol.

The following command will update the file appropriately:

sed -i "s/git:/https:/g" hooks/lammps/CMakeLists.txt
kaustubhjsawant commented 2 years ago

Thank you