Skip to content

Commit 0912996

Browse files
authored
Merge pull request #9617 from github/criemen/fix-go-pattern-lua-config
Go: Properly escape dash in tracing-config.lua
2 parents 916cf6e + d3c7395 commit 0912996

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)