Skip to content

Commit 57083e7

Browse files
authored
Load canonical-path DLL from CODEQL_EXTRACTOR_GO_ROOT, not CODEQL_DIST
1 parent f7f5376 commit 57083e7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

go/extractor/canonicalize/canonicalize_windows.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ var (
1717
)
1818

1919
func init() {
20-
dist := os.Getenv("CODEQL_DIST")
21-
if dist == "" {
20+
root := os.Getenv("CODEQL_EXTRACTOR_GO_ROOT")
21+
if root == "" {
2222
return
2323
}
24-
dllPath := filepath.Join(dist, "tools", "win64", "codeql_canonical_path.dll")
24+
dllPath := filepath.Join(root, "tools", "win64", "codeql_canonical_path.dll")
2525
d, err := syscall.LoadDLL(dllPath)
2626
if err != nil {
2727
return

0 commit comments

Comments
 (0)