Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error install git-flow Rocky Linux 9.3 #6490

Open
joaomas opened this issue Mar 13, 2024 · 5 comments
Open

Error install git-flow Rocky Linux 9.3 #6490

joaomas opened this issue Mar 13, 2024 · 5 comments

Comments

@joaomas
Copy link

joaomas commented Mar 13, 2024

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”

@mtaschenberger
Copy link

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

@joaomas
Copy link
Author

joaomas commented May 18, 2024

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?

@ChrisJStone
Copy link

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.

@anoureldinezg
Copy link

anoureldinezg commented Jul 15, 2024

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:

  1. Clone the gitflow repository manually.
  2. Modify the .gitmodules file to use https:// for the submodule.
  3. Initialize and update the submodule.
  4. Run the installer script.

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!

@ChrisJStone
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants