Skip to content

Commit 1c77050

Browse files
Siddhant-K-coderoboquat
authored andcommitted
fix: improve GoLang config inferrer
Run go command at current (root) Signed-off-by: Siddhant Khare <[email protected]>
1 parent 3ce09dc commit 1c77050

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/server/src/config/config-inferrer.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ describe("config inferrer", () => {
221221
tasks: [
222222
{
223223
init: "go get && go build ./... && go test ./...",
224-
command: "go run",
224+
command: "go run .",
225225
},
226226
],
227227
vscode: {

components/server/src/config/config-inferrer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export class ConfigInferrer {
150150
this.addCommand(ctx.config, "go get", "init");
151151
this.addCommand(ctx.config, "go build ./...", "init");
152152
this.addCommand(ctx.config, "go test ./...", "init");
153-
this.addCommand(ctx.config, "go run", "command");
153+
this.addCommand(ctx.config, "go run .", "command");
154154
this.addExtension(ctx, "golang.go");
155155
}
156156
}

0 commit comments

Comments
 (0)