-
Notifications
You must be signed in to change notification settings - Fork 300
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
Conversation
bootstrap/bootstrap.go
Outdated
func (b *Bootstrap) gitEnumerateSubmoduleURLs() ([]string, error) { | ||
urls := []string{} | ||
|
||
gitSubmoduleOutput, err := b.runCommandSilentlyAndCaptureOutput( |
There was a problem hiding this comment.
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?
More comments added @keithpitt! |
bootstrap/bootstrap.go
Outdated
// 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() |
There was a problem hiding this comment.
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.
There was a problem hiding this 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, 🚀
Add submodule remotes to known_hosts as part of the checkout process.
Fix for #503