diff --git a/components/server/src/config/config-inferrer.spec.ts b/components/server/src/config/config-inferrer.spec.ts index 5ce3a42be5bb1f..75ec2a35fbf556 100644 --- a/components/server/src/config/config-inferrer.spec.ts +++ b/components/server/src/config/config-inferrer.spec.ts @@ -221,7 +221,7 @@ describe("config inferrer", () => { tasks: [ { init: "go get && go build ./... && go test ./...", - command: "go run", + command: "go run .", }, ], vscode: { diff --git a/components/server/src/config/config-inferrer.ts b/components/server/src/config/config-inferrer.ts index 5cd7a6df3e87aa..77f9c92279d17f 100644 --- a/components/server/src/config/config-inferrer.ts +++ b/components/server/src/config/config-inferrer.ts @@ -150,7 +150,7 @@ export class ConfigInferrer { this.addCommand(ctx.config, "go get", "init"); this.addCommand(ctx.config, "go build ./...", "init"); this.addCommand(ctx.config, "go test ./...", "init"); - this.addCommand(ctx.config, "go run", "command"); + this.addCommand(ctx.config, "go run .", "command"); this.addExtension(ctx, "golang.go"); } }