mirror of
https://github.com/langgenius/dify-plugin-daemon.git
synced 2026-07-22 09:45:27 -04:00
23 lines
316 B
Go
23 lines
316 B
Go
package packager
|
|
|
|
import (
|
|
"errors"
|
|
"fmt"
|
|
)
|
|
|
|
func (p *Packager) Validate() error {
|
|
// read manifest
|
|
_, err := p.fetchManifest()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
// check assets valid
|
|
err = p.decoder.CheckAssetsValid()
|
|
if err != nil {
|
|
return errors.Join(err, fmt.Errorf("assets invalid"))
|
|
}
|
|
|
|
return nil
|
|
}
|