Chore: Check version compatibilty when installing a plugin (#92200)

This commit is contained in:
Andres Martinez Gotor
2024-08-22 13:47:00 +02:00
committed by GitHub
parent f188da7b65
commit 1b336e94c8
7 changed files with 89 additions and 35 deletions
@@ -134,7 +134,9 @@ func doInstallPlugin(ctx context.Context, pluginID, version string, o pluginInst
Logger: services.Logger,
})
compatOpts := repo.NewCompatOpts(services.GrafanaVersion, runtime.GOOS, runtime.GOARCH)
// FIXME: Re-enable grafanaVersion. This check was broken in 10.2 so disabling it for the moment.
// Expected to be re-enabled in 12.x.
compatOpts := repo.NewCompatOpts("", runtime.GOOS, runtime.GOARCH)
var archive *repo.PluginArchive
var err error