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

Use HTTPS instead of SSH for Git submodules #542

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

edmorley
Copy link
Member

Some of the Git submodules previously used SSH instead of HTTPS, which:

  • Causes errors in environments where SSH auth isn't configured (such as when people prefer to use HTTPS auth for GitHub, but use a different SSH key for other use-cases, and use a wildcard in the SSH config).
  • Is unnecessary, given these are public repos so don't need auth to read.
  • Was inconsistent, given that some of the Git submodules already used HTTPS.

This fixes the following errors I get locally:

$ git submodule update
Cloning into '/Users/emorley/src/buildpacks-jvm/buildpacks/maven/test-apps/heroku-java-getting-started'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

GUS-W-13745392.

Some of the Git submodules previously used SSH instead of HTTPS, which:
- Causes errors in environments where SSH auth isn't configured
  (such as when people prefer to use HTTPS auth for GitHub, but
   use a different SSH key for other use-cases, and use a wildcard
   in the SSH config).
- Is unnecessary, given these are public repos so don't need
  auth to read.

This fixes the following errors I get locally:

```
$ git submodule update
Cloning into '/Users/emorley/src/buildpacks-jvm/buildpacks/maven/test-apps/heroku-java-getting-started'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
```

GUS-W-13745392.
@edmorley edmorley added the skip changelog Pull requests that do not require changes to the CHANGELOG file label Jul 12, 2023
@edmorley edmorley self-assigned this Jul 12, 2023
@edmorley edmorley marked this pull request as ready for review July 12, 2023 09:35
@edmorley edmorley requested a review from a team as a code owner July 12, 2023 09:35
@edmorley edmorley enabled auto-merge (squash) July 12, 2023 09:36
@edmorley edmorley merged commit ed04e3c into main Jul 12, 2023
9 checks passed
@edmorley edmorley deleted the edmorley/use-https-git-submodules branch July 12, 2023 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip changelog Pull requests that do not require changes to the CHANGELOG file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants