[release-12.2.1] Plugins: Dependencies do not inherit parent URL for preinstall (#111769)

Plugins: Dependencies do not inherit parent URL for preinstall (#111762)

dependencies dont inehrit parent url for preinstall

(cherry picked from commit 073338ec29)

Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
This commit is contained in:
grafana-delivery-bot[bot]
2025-09-30 15:05:02 +01:00
committed by GitHub
co-authored by Will Browne
parent 87fa31e57b
commit 57d0237fda
2 changed files with 68 additions and 1 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ func (m *PluginInstaller) Add(ctx context.Context, pluginID, version string, opt
for _, dep := range archive.Dependencies {
m.log.Info(fmt.Sprintf("Fetching %s dependency %s...", pluginID, dep.ID))
err = m.Add(ctx, dep.ID, "", opts)
err = m.Add(ctx, dep.ID, "", plugins.NewAddOpts(opts.GrafanaVersion(), opts.OS(), opts.Arch(), ""))
if err != nil {
var dupeErr plugins.DuplicateError
if errors.As(err, &dupeErr) {