[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:
co-authored by
Will Browne
parent
87fa31e57b
commit
57d0237fda
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user