Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc7fc7b9

Browse files
fix: create directory before writing coder connect network info file (#17628)
The regular network info file creation code also calls `Mkdirall`.Wasn't picked up in manual testing as I already had the `/net` folder inmy VSCode.Wasn't picked up in automated testing because we use an in-memory FS,which for some reason does this implicitly.
1 parent4de7661 commitc7fc7b9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎cli/ssh.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1542,6 +1542,10 @@ func writeCoderConnectNetInfo(ctx context.Context, networkInfoDir string) error
15421542
if!ok {
15431543
fs=afero.NewOsFs()
15441544
}
1545+
iferr:=fs.MkdirAll(networkInfoDir,0o700);err!=nil {
1546+
returnxerrors.Errorf("mkdir: %w",err)
1547+
}
1548+
15451549
// The VS Code extension obtains the PID of the SSH process to
15461550
// find the log file associated with a SSH session.
15471551
//

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp