all repos — searchix @ 3e928369c3af69d0ef24a2f5d20c938689b15aa1

Search engine for NixOS, nix-darwin, home-manager and NUR users

fix: error saving metadata when re-indexing

Alan Pearce
commit

3e928369c3af69d0ef24a2f5d20c938689b15aa1

parent

c4377589f5f6e97b430d4fabab2aa1bb72b0996d

1 file changed, 3 insertions(+), 3 deletions(-)

changed files
M internal/file/root.gointernal/file/root.go
@@ -80,10 +80,10 @@
return nil } -func (r *Root) RemoveAll() error { - err := os.RemoveAll(r.Name()) +func (r *Root) RemoveAll(name string) error { + err := os.RemoveAll(r.JoinPath(name)) if err != nil { - return fault.Wrap(err, fmsg.Withf("failed to remove data root %s", r.Name())) + return fault.Wrap(err, fmsg.Withf("failed to remove path %s", r.JoinPath(name))) } return nil