mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 08:12:10 +08:00
Plugins: Fix symlinks inside plugins path not being followed (#80205)
* Plugins: Loader: Fix symlinks not followed when loading external plugins * Add test case
This commit is contained in:
@ -51,7 +51,7 @@ func (s *Service) externalPluginSources() []plugins.PluginSource {
|
||||
|
||||
var pluginDirs []string
|
||||
for _, dir := range d {
|
||||
if dir.IsDir() {
|
||||
if dir.IsDir() || dir.Type()&os.ModeSymlink == os.ModeSymlink {
|
||||
pluginDirs = append(pluginDirs, filepath.Join(pluginsPath, dir.Name()))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user