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

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

dependencies dont inehrit parent url for preinstall

(cherry picked from commit 073338ec29)

* fix test

---------

Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
Co-authored-by: Will Browne <wbrowne@tcd.ie>
This commit is contained in:
grafana-delivery-bot[bot]
2025-09-30 15:04:47 +01:00
committed by GitHub
co-authored by Will Browne Will Browne
parent 4fdbb9e5d7
commit cfd4902d33
2 changed files with 65 additions and 1 deletions
+1 -1
View File
@@ -68,7 +68,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) {