mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Go: Properly escape dash in tracing-config.lua
Previously, the pattern didn't match what it was intended to match.
This commit is contained in:
committed by
GitHub
parent
fc7e0ec193
commit
d3c7395fa2
@@ -1,7 +1,7 @@
|
||||
function RegisterExtractorPack()
|
||||
local goExtractor = GetPlatformToolsDirectory() .. 'go-extractor'
|
||||
local patterns = {
|
||||
CreatePatternMatcher({'^go-autobuilder$'}, MatchCompilerName, nil,
|
||||
CreatePatternMatcher({'^go%-autobuilder$'}, MatchCompilerName, nil,
|
||||
{trace = false}),
|
||||
CreatePatternMatcher({'^go$'}, MatchCompilerName, goExtractor, {
|
||||
prepend = {'--mimic', '${compiler}'},
|
||||
@@ -12,7 +12,7 @@ function RegisterExtractorPack()
|
||||
if OperatingSystem == 'windows' then
|
||||
goExtractor = goExtractor .. 'go-extractor.exe'
|
||||
patterns = {
|
||||
CreatePatternMatcher({'^go-autobuilder%.exe$'}, MatchCompilerName,
|
||||
CreatePatternMatcher({'^go%-autobuilder%.exe$'}, MatchCompilerName,
|
||||
nil, {trace = false}),
|
||||
CreatePatternMatcher({'^go%.exe$'}, MatchCompilerName, goExtractor,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user