mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
Merge pull request #606 from github/criemen/update-tracing-config
Update tracing-config.lua to newest API.
This commit is contained in:
@@ -1,18 +1,14 @@
|
||||
function RegisterExtractorPack()
|
||||
local goExtractor = GetPlatformToolsDirectory() .. 'go-extractor'
|
||||
if OperatingSystem == 'windows' then
|
||||
local goExtractor = GetPlatformToolsDirectory() .. 'go-extractor.exe'
|
||||
goExtractor = GetPlatformToolsDirectory() .. 'go-extractor.exe'
|
||||
end
|
||||
local matchers = {
|
||||
CreatePatternMatcher('go',
|
||||
{'^go-autobuilder$', '^go-autobuilder%.exe$'},
|
||||
return {
|
||||
CreatePatternMatcher({'^go-autobuilder$', '^go-autobuilder%.exe$'},
|
||||
MatchCompilerName, nil, {trace = false}),
|
||||
|
||||
CreatePatternMatcher('go', {'^go$', '^go%.exe$'}, MatchCompilerName,
|
||||
CreatePatternMatcher({'^go$', '^go%.exe$'}, MatchCompilerName,
|
||||
goExtractor, {prepend = {'--mimic', '${compiler}'}})
|
||||
}
|
||||
|
||||
RegisterLanguage('go', matchers)
|
||||
end
|
||||
|
||||
-- Return a list of minimum supported versions of the configuration file format
|
||||
|
||||
Reference in New Issue
Block a user