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

Commita018930

Browse files
committed
fix a data race in test
1 parentb3ae8d5 commita018930

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎cli/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,10 +393,10 @@ func (r *RootCmd) Server(newAPI func(context.Context, *coderd.Options) (*coderd.
393393

394394
ifvals.EphemeralDeployment.Value() {
395395
r.globalConfig=filepath.Join(os.TempDir(),fmt.Sprintf("coder_ephemeral_%d",time.Now().UnixMilli()))
396-
cliui.Infof(inv.Stdout,"Using an ephemeral deployment (%s)",r.globalConfig)
397396
iferr:=os.MkdirAll(r.globalConfig,0o700);err!=nil {
398397
returnxerrors.Errorf("create ephemeral deployment directory: %w",err)
399398
}
399+
cliui.Infof(inv.Stdout,"Using an ephemeral deployment (%s)",r.globalConfig)
400400
deferfunc() {
401401
cliui.Infof(inv.Stdout,"Removing ephemeral deployment directory...")
402402
iferr:=os.RemoveAll(r.globalConfig);err!=nil {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp