remotestore: only the deriver's filename, not the full path

This commit is contained in:
Luke Granger-Brown 2022-11-08 12:33:17 +00:00
parent eeb71630af
commit c157d8f91e

View file

@ -61,6 +61,7 @@ func (d *Daemon) NARInfo(storePath string) (*narinfo.NarInfo, error) {
if ni.Deriver, err = d.r.ReadString(); err != nil {
return nil, fmt.Errorf("reading deriver: %w", err)
}
ni.Deriver = path.Base(ni.Deriver)
hashStr, err := d.r.ReadString()
if err != nil {