Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Conversation

lilshoff
Copy link
Contributor

@lilshoff lilshoff commented Mar 2, 2021

No description provided.

@lilshoff lilshoff requested a review from cmoog March 2, 2021 01:10
@@ -176,6 +177,9 @@ func writeSSHKey(ctx context.Context, client coder.Client, privateKeyPath string

func makeNewConfigs(userName string, envs []coderutil.EnvWithWorkspaceProvider, privateKeyFilepath string) string {
newConfig := fmt.Sprintf("\n%s\n%s\n\n", sshStartToken, sshStartMessage)

sort.Sort(coderutil.EWPsByEnvName(envs))
Copy link
Contributor

Choose a reason for hiding this comment

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

personally, I much prefer sort.Slice but your call

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah.
Good call.
I like that better here too actually 👌
Thanks

@lilshoff lilshoff merged commit 9c085aa into master Mar 2, 2021
@lilshoff lilshoff deleted the lilshoff/sort-ssh-config branch March 2, 2021 02:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants