Skip to content

Commit

Permalink
🐛 QD-10590 Plugins must be installed only inside native mode (inside …
Browse files Browse the repository at this point in the history
…docker is native)

(cherry picked from commit 2d09e71)
  • Loading branch information
MekhailS committed Dec 21, 2024
1 parent 674ebeb commit 80c403c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/ide.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,9 @@ func prepareDirectories(cacheDir string, logDir string, confDir string) {

// installPlugins runs plugin installer for every plugin id in qodana.yaml.
func installPlugins(opts *QodanaOptions, plugins []platform.Plugin) {
if !opts.IsNative() {
return
}
if len(plugins) > 0 {
setInstallPluginsVmoptions(opts)
}
Expand Down
4 changes: 4 additions & 0 deletions platform/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,3 +395,7 @@ func (o *QodanaOptions) GetSarifPath() string {
func (o *QodanaOptions) GetShortSarifPath() string {
return path.Join(o.ResultsDir, "qodana-short.sarif.json")
}

func (o *QodanaOptions) IsNative() bool {
return o.Ide != ""
}

0 comments on commit 80c403c

Please sign in to comment.