AmazonLinux 2022 git can't connect to HTTPS resources
Original conversation: omnibus-gitlab!6477 (comment 1263371704)
While attempting to build omnibus-gitlab
we're getting:
git: 'remote-https' is not a git command. See 'git --help'.
Retrying `git clone --bare --no-hardlinks --quiet -- https://gitlab.com/gitlab-org/omnibus.git /builds/gitlab-org/omnibus-gitlab/gems/ruby/3.0.0/cache/bundler/git/omnibus-4c0daa19be91f4dfac310e8e21a6e76c3993daeb` at /builds/gitlab-org/omnibus-gitlab due to error (2/4): Bundler::Source::Git::GitCommandError Git error: command `git clone --bare --no-hardlinks --quiet -- https://gitlab.com/gitlab-org/omnibus.git /builds/gitlab-org/omnibus-gitlab/gems/ruby/3.0.0/cache/bundler/git/omnibus-4c0daa19be91f4dfac310e8e21a6e76c3993daeb` in directory /builds/gitlab-org/omnibus-gitlab has failed.
which turns out to be sourced in:
further investigation shows that during build git's configure can't find OpenSSL library:
/usr/bin/ld: cannot find -lssl: No such file or directory