From 77f2506c875743e246da6d0752a83d8a6324563d Mon Sep 17 00:00:00 2001 From: Siddhant Khare Date: Sun, 18 Sep 2022 13:03:18 +0000 Subject: [PATCH] fix: improve GoLang config inferrer Run go command at current (root) Signed-off-by: Siddhant Khare --- components/server/src/config/config-inferrer.spec.ts | 2 +- components/server/src/config/config-inferrer.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"); } }