Skip to content

Commit

Permalink
🐛QD-10419 Set up plugins once even in scoped script
Browse files Browse the repository at this point in the history
  • Loading branch information
avafanasiev committed Nov 30, 2024
1 parent 0da11cc commit 9fce635
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,11 @@ func RunAnalysis(ctx context.Context, options *QodanaOptions) int {
scenario = runScenarioDefault
options.ResetScanScenarioOptions()
}

installPlugins(options, options.QdConfig.Plugins)
// this way of running needs to do bootstrap twice on different commits and will do it internally
if scenario != runScenarioScoped && options.Ide != "" {
platform.Bootstrap(options.QdConfig.Bootstrap, options.ProjectDir)
installPlugins(options, options.QdConfig.Plugins)
}
switch scenario {
case runScenarioFullHistory:
Expand Down Expand Up @@ -349,7 +350,6 @@ func runScopeScript(ctx context.Context, options *QodanaOptions, startHash strin
configAtHash = options.QdConfig
}
platform.Bootstrap(configAtHash.Bootstrap, options.ProjectDir)
installPlugins(options, configAtHash.Plugins)

exitCode := runQodana(ctx, options)
if !(exitCode == 0 || exitCode == 255) {
Expand Down

0 comments on commit 9fce635

Please sign in to comment.