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

Add submodule remotes to known_hosts #509

Merged
merged 3 commits into from
Jul 26, 2017
Merged

Conversation

lox
Copy link
Contributor

@lox lox commented Jul 21, 2017

Add submodule remotes to known_hosts as part of the checkout process.

Fix for #503

@lox lox requested a review from keithpitt July 21, 2017 06:30
func (b *Bootstrap) gitEnumerateSubmoduleURLs() ([]string, error) {
urls := []string{}

gitSubmoduleOutput, err := b.runCommandSilentlyAndCaptureOutput(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we get a copy/paste of what the output looks like?

@lox
Copy link
Contributor Author

lox commented Jul 25, 2017

More comments added @keithpitt!

// submodules might need their fingerprints verified too
if b.SSHFingerprintVerification {
commentf("Checking to see if submodule urls need to be added to known_hosts")
submoduleRepos, _ := b.gitEnumerateSubmoduleURLs()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably show a warning if it fails for what ever reason I think, even if we just show it an continue on our merry way.

Copy link
Member

@keithpitt keithpitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once the warning is in, 🚀

@lox lox merged commit 6a96082 into master Jul 26, 2017
@lox lox deleted the add-ssh-known-hosts-for-submodules branch July 26, 2017 06:41
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

Successfully merging this pull request may close these issues.

2 participants