Skip to content

Commit 37acb39

Browse files
committed
internal/lsp: run vulncheck in specified dir
The directory for the vulncheck command is passed as an argument. Use the specified directory in the configuration. Change-Id: I1824b308701fd30548efa8bec7452de1fdf76bb9 Reviewed-on: https://go-review.googlesource.com/c/tools/+/398394 Trust: Suzy Mueller <[email protected]> Run-TryBot: Suzy Mueller <[email protected]> Reviewed-by: Hyang-Ah Hana Kim <[email protected]> Trust: Hyang-Ah Hana Kim <[email protected]>
1 parent 4077921 commit 37acb39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/lsp/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ func (c *commandHandler) RunVulncheckExp(ctx context.Context, args command.Vulnc
808808
Tests: true, // TODO(hyangah): add a field in args.
809809
BuildFlags: buildFlags,
810810
Env: viewEnv,
811-
Dir: view.Folder().Filename(),
811+
Dir: args.Dir.SpanURI().Filename(),
812812
// TODO(hyangah): configure overlay
813813
}
814814
var err error

0 commit comments

Comments
 (0)