fix: Write agent URL to file for gitssh (#1123)

This was broken because gitssh couldn't find the URL.
Now it can, and SSH is confirmed to work on dogfood! 🥳
This commit is contained in:
Kyle Carberry
2022-04-25 04:06:52 +00:00
committed by GitHub
parent 68f67c54b6
commit 8ff0c8b02a
2 changed files with 15 additions and 4 deletions
+4
View File
@@ -120,6 +120,10 @@ func workspaceAgent() *cobra.Command {
if err != nil {
return xerrors.Errorf("writing agent session token to config: %w", err)
}
err = cfg.URL().Write(client.URL.String())
if err != nil {
return xerrors.Errorf("writing agent url to config: %w", err)
}
closer := agent.New(client.ListenWorkspaceAgent, logger)
<-cmd.Context().Done()