in pkg/repo/repo.go [257:287]
func (r *Repo) LoadLocalKEPs(sig string) ([]*api.Proposal, error) {
// KEPs in the local filesystem
files, err := r.findLocalKEPMeta(sig)
if err != nil {
return nil, errors.Wrapf(
err,
"searching for local KEPs from %s",
sig,
)
}
logrus.Debugf("loading the following local KEPs: %v", files)
allKEPs := make([]*api.Proposal, len(files))
for i, kepYamlPath := range files {
kep, err := r.loadKEPFromYaml(r.BasePath, kepYamlPath)
if err != nil {
return nil, errors.Wrapf(
err,
"reading KEP %s from yaml",
kepYamlPath,
)
}
allKEPs[i] = kep
}
logrus.Debugf("returning %d local KEPs", len(allKEPs))
return allKEPs, nil
}