Skip to content

Commit d3c7395

Browse files
authored
Go: Properly escape dash in tracing-config.lua
Previously, the pattern didn't match what it was intended to match.
1 parent fc7e0ec commit d3c7395

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go/codeql-tools/tracing-config.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
function RegisterExtractorPack()
22
local goExtractor = GetPlatformToolsDirectory() .. 'go-extractor'
33
local patterns = {
4-
CreatePatternMatcher({'^go-autobuilder$'}, MatchCompilerName, nil,
4+
CreatePatternMatcher({'^go%-autobuilder$'}, MatchCompilerName, nil,
55
{trace = false}),
66
CreatePatternMatcher({'^go$'}, MatchCompilerName, goExtractor, {
77
prepend = {'--mimic', '${compiler}'},
@@ -12,7 +12,7 @@ function RegisterExtractorPack()
1212
if OperatingSystem == 'windows' then
1313
goExtractor = goExtractor .. 'go-extractor.exe'
1414
patterns = {
15-
CreatePatternMatcher({'^go-autobuilder%.exe$'}, MatchCompilerName,
15+
CreatePatternMatcher({'^go%-autobuilder%.exe$'}, MatchCompilerName,
1616
nil, {trace = false}),
1717
CreatePatternMatcher({'^go%.exe$'}, MatchCompilerName, goExtractor,
1818
{

0 commit comments

Comments
 (0)