From eb4bc861502b66b3cad90646b20c14495e51d389 Mon Sep 17 00:00:00 2001 From: collen <34930357+cmz123@users.noreply.github.com> Date: Thu, 21 Dec 2023 13:53:25 +0800 Subject: [PATCH] Go build cannot find the tidb-server directory --- src/playground/command.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playground/command.ts b/src/playground/command.ts index a72634e..71a91a4 100644 --- a/src/playground/command.ts +++ b/src/playground/command.ts @@ -84,7 +84,7 @@ export class PlaygroundCommand { if (folder.name === comp) { if (comp === 'tidb') { preCmds.push( - `cd ${folder.uri.fsPath} && make && go build -gcflags='-N -l' -o ./bin/tidb-server tidb-server/main.go` + `cd ${folder.uri.fsPath} && make && go build -gcflags='-N -l' -o ./bin/tidb-server ./cmd/tidb-server/main.go` ) args.push(`--${k} ${folder.uri.fsPath}/bin/tidb-server`) } else if (comp === 'tikv') {