Skip to content

Commit 80c403c

Browse files
committed
🐛 QD-10590 Plugins must be installed only inside native mode (inside docker is native)
(cherry picked from commit 2d09e71)
1 parent 674ebeb commit 80c403c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

core/ide.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,9 @@ func prepareDirectories(cacheDir string, logDir string, confDir string) {
404404

405405
// installPlugins runs plugin installer for every plugin id in qodana.yaml.
406406
func installPlugins(opts *QodanaOptions, plugins []platform.Plugin) {
407+
if !opts.IsNative() {
408+
return
409+
}
407410
if len(plugins) > 0 {
408411
setInstallPluginsVmoptions(opts)
409412
}

platform/options.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,3 +395,7 @@ func (o *QodanaOptions) GetSarifPath() string {
395395
func (o *QodanaOptions) GetShortSarifPath() string {
396396
return path.Join(o.ResultsDir, "qodana-short.sarif.json")
397397
}
398+
399+
func (o *QodanaOptions) IsNative() bool {
400+
return o.Ide != ""
401+
}

0 commit comments

Comments
 (0)