Open joaomas opened 5 months ago
Same issue for me.
System: Amazon Linux release 2023.4.20240319 (Amazon Linux) (EC2 machine)
Full Log: sudo ./gitflow-installer.sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2145 100 2145 0 0 3975 0 --:--:-- --:--:-- --:--:-- 3975
Installing git-flow to /usr/local/bin Cloning repo from GitHub to gitflow Cloning into 'gitflow'... warning: redirecting to https://github.com/nvie/gitflow.git/ remote: Enumerating objects: 1407, done. remote: Total 1407 (delta 0), reused 0 (delta 0), pack-reused 1407 Receiving objects: 100% (1407/1407), 484.34 KiB | 3.56 MiB/s, done. Resolving deltas: 100% (796/796), done. Updating submodules Submodule 'shFlags' (git://github.com/nvie/shFlags.git) registered for path 'shFlags' Cloning into '/home/ec2-user/gitflow/shFlags'... fatal: unable to connect to github.com: github.com[0: 140.82.121.3]: errno=Connection timed out
fatal: clone of 'git://github.com/nvie/shFlags.git' into submodule path '/home/ec2-user/gitflow/shFlags' failed Failed to clone 'shFlags'. Retry scheduled Cloning into '/home/ec2-user/gitflow/shFlags'... fatal: unable to connect to github.com: github.com[0: 140.82.121.4]: errno=Connection timed out
fatal: clone of 'git://github.com/nvie/shFlags.git' into submodule path '/home/ec2-user/gitflow/shFlags' failed Failed to clone 'shFlags' a second time, aborting 'gitflow/git-flow' -> '/usr/local/bin/git-flow' 'gitflow/git-flow-init' -> '/usr/local/bin/git-flow-init' 'gitflow/git-flow-feature' -> '/usr/local/bin/git-flow-feature' 'gitflow/git-flow-hotfix' -> '/usr/local/bin/git-flow-hotfix' 'gitflow/git-flow-release' -> '/usr/local/bin/git-flow-release' 'gitflow/git-flow-support' -> '/usr/local/bin/git-flow-support' 'gitflow/git-flow-version' -> '/usr/local/bin/git-flow-version' 'gitflow/gitflow-common' -> '/usr/local/bin/gitflow-common' install: cannot stat 'gitflow/gitflow-shFlags': No such file or directory
Same issue for me.
System: Amazon Linux release 2023.4.20240319 (Amazon Linux) (EC2 machine)
Full Log: sudo ./gitflow-installer.sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2145 100 2145 0 0 3975 0 --:--:-- --:--:-- --:--:-- 3975
gitflow no-make installer
Installing git-flow to /usr/local/bin Cloning repo from GitHub to gitflow Cloning into 'gitflow'... warning: redirecting to https://github.com/nvie/gitflow.git/ remote: Enumerating objects: 1407, done. remote: Total 1407 (delta 0), reused 0 (delta 0), pack-reused 1407 Receiving objects: 100% (1407/1407), 484.34 KiB | 3.56 MiB/s, done. Resolving deltas: 100% (796/796), done. Updating submodules Submodule 'shFlags' (git://github.com/nvie/shFlags.git) registered for path 'shFlags' Cloning into '/home/ec2-user/gitflow/shFlags'... fatal: unable to connect to github.com: github.com[0: 140.82.121.3]: errno=Connection timed out
fatal: clone of 'git://github.com/nvie/shFlags.git' into submodule path '/home/ec2-user/gitflow/shFlags' failed Failed to clone 'shFlags'. Retry scheduled Cloning into '/home/ec2-user/gitflow/shFlags'... fatal: unable to connect to github.com: github.com[0: 140.82.121.4]: errno=Connection timed out
fatal: clone of 'git://github.com/nvie/shFlags.git' into submodule path '/home/ec2-user/gitflow/shFlags' failed Failed to clone 'shFlags' a second time, aborting 'gitflow/git-flow' -> '/usr/local/bin/git-flow' 'gitflow/git-flow-init' -> '/usr/local/bin/git-flow-init' 'gitflow/git-flow-feature' -> '/usr/local/bin/git-flow-feature' 'gitflow/git-flow-hotfix' -> '/usr/local/bin/git-flow-hotfix' 'gitflow/git-flow-release' -> '/usr/local/bin/git-flow-release' 'gitflow/git-flow-support' -> '/usr/local/bin/git-flow-support' 'gitflow/git-flow-version' -> '/usr/local/bin/git-flow-version' 'gitflow/gitflow-common' -> '/usr/local/bin/gitflow-common' install: cannot stat 'gitflow/gitflow-shFlags': No such file or directory
@mtaschenberger any news?
see Installing on Linux, Unix, etc for currently supported installation on Linux and Unix type OS's. This is not a issue with my fork of gitflow.
I think I found the solution with the help of GPT.
I tested it and it works on my system. My os-release: [username@machine test]$ cat /etc/os-release NAME="Rocky Linux" VERSION="9.4 (Blue Onyx)" ID="rocky" ID_LIKE="rhel centos fedora" VERSION_ID="9.4" PLATFORM_ID="platform:el9" PRETTY_NAME="Rocky Linux 9.4 (Blue Onyx)" ANSI_COLOR="0;32" LOGO="fedora-logo-icon" CPE_NAME="cpe:/o:rocky:rocky:9::baseos" HOME_URL="https://rockylinux.org/" BUG_REPORT_URL="https://bugs.rockylinux.org/" SUPPORT_END="2032-05-31" ROCKY_SUPPORT_PRODUCT="Rocky-Linux-9" ROCKY_SUPPORT_PRODUCT_VERSION="9.4" REDHAT_SUPPORT_PRODUCT="Rocky Linux" REDHAT_SUPPORT_PRODUCT_VERSION="9.4"
{username@machine test]$ git-flow init No branches exist yet. Base branches must be created now. Branch name for production releases: [master]
Solution: The error you're encountering is due to the inability to clone the shFlags submodule via the git:// protocol, which seems to be failing due to network issues or protocol restrictions. You can resolve this issue by modifying the submodule URL to use the https:// protocol instead. Here's how you can do it:
Step 1: git clone https://github.com/nvie/gitflow.git cd gitflow
Step 2: sed -i 's|git://github.com/nvie/shFlags.git|https://github.com/nvie/shFlags.git|' .gitmodules
Step3: git submodule init git submodule update
Step 3.5 (GPT doesn't state this): You need to exit the gitflow directory and be in the .. directory for that folder: cd ..
Step4: sudo ./contrib/gitflow-installer.sh install stable
Hope it works for you as it did for me. Thanks!
@anoureldinezg good to hear that you were able to find a solution. Just so you are aware I have a maintained fork of git-flow at gitflow-cjs
After the instructions:
curl -OL https://raw.github.com/nvie/gitflow/develop/contrib/gitflow-installer.sh chmod +x gitflow-installer.sh sudo ./gitflow-installer.sh
Show the erros below:
fatal: clone of ‘git://github.com/nvie/shFlags.git’ into submodule path ‘/home/joao/repo/gitflow/shFlags’ failed “install: cannot stat ‘gitflow/gitflow-shFlags’: No such file or directory”