[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:
co-authored by
Will Browne
Will Browne
parent
4fdbb9e5d7
commit
cfd4902d33
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user