Plugins: Add support for fetching plugin includes from plugin CDN (#91476)
* update oss side * add Rel func to plugins.FS * update tests * add comment * fix fs paths for nested plugin * fix test * fix sources * fix cdn class bug * update tests * remove commented out code
This commit is contained in:
@@ -77,6 +77,10 @@ func (f LocalFS) fileIsAllowed(basePath string, absolutePath string, info os.Fil
|
||||
return true, nil
|
||||
}
|
||||
|
||||
func (f LocalFS) Rel(p string) (string, error) {
|
||||
return filepath.Rel(f.basePath, p)
|
||||
}
|
||||
|
||||
// walkFunc returns a filepath.WalkFunc that accumulates absolute file paths into acc by walking over f.Base().
|
||||
// f.fileIsAllowed is used as WalkFunc, see its documentation for more information on which files are collected.
|
||||
func (f LocalFS) walkFunc(basePath string, acc map[string]struct{}) filepath.WalkFunc {
|
||||
|
||||
Reference in New Issue
Block a user