Skip to content

Commit af2ccd1

Browse files
authored
Move subst package into go/extractor/util
1 parent 1870a01 commit af2ccd1

7 files changed

Lines changed: 13 additions & 25 deletions

File tree

go/extractor/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ go_library(
1919
"//go/extractor/dbscheme",
2020
"//go/extractor/diagnostics",
2121
"//go/extractor/srcarchive",
22-
"//go/extractor/subst",
2322
"//go/extractor/toolchain",
2423
"//go/extractor/trap",
2524
"//go/extractor/util",

go/extractor/extractor.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import (
2525
"github.com/github/codeql-go/extractor/dbscheme"
2626
"github.com/github/codeql-go/extractor/diagnostics"
2727
"github.com/github/codeql-go/extractor/srcarchive"
28-
"github.com/github/codeql-go/extractor/subst"
2928
"github.com/github/codeql-go/extractor/toolchain"
3029
"github.com/github/codeql-go/extractor/trap"
3130
"github.com/github/codeql-go/extractor/util"
@@ -767,7 +766,7 @@ func normalizedPath(ast *ast.File, fset *token.FileSet) string {
767766
if err != nil {
768767
path = file
769768
}
770-
return subst.ResolvePath(path)
769+
return util.ResolvePath(path)
771770
}
772771

773772
// extractFile extracts AST information for the given file

go/extractor/subst/BUILD.bazel

Lines changed: 0 additions & 18 deletions
This file was deleted.

go/extractor/util/BUILD.bazel

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package subst
1+
package util
22

33
// ResolvePath resolves subst'd drive letters in a full path.
44
// If the path starts with a subst'd drive letter, replaces it with the backing path.
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//go:build !windows
22

3-
package subst
3+
package util
44

55
// ResolveDrive is a no-op on non-Windows platforms.
66
func ResolveDrive(driveRoot string) string { return "" }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//go:build windows
22

3-
package subst
3+
package util
44

55
import (
66
"os"

0 commit comments

Comments
 (0)