refactor: don't force os.Root paths to be absolute
1 file changed, 0 insertions(+), 9 deletions(-)
changed files
M internal/file/root.go → internal/file/root.go
@@ -30,15 +30,6 @@ return OpenRoot(name) } func OpenRoot(name string) (*Root, error) { - if !filepath.IsAbs(name) { - wd, err := os.Getwd() - if err != nil { - return nil, fault.Wrap(err, fmsg.With("failed to get current working directory")) - } - - name = filepath.Join(wd, name) - } - r, err := os.OpenRoot(name) if err != nil { return nil, fault.Wrap(err, fmsg.Withf("failed to open data root directory %s", name))