Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

irmin-pack: implement fresh for lower layer #2238

Open
metanivek opened this issue Apr 21, 2023 · 0 comments
Open

irmin-pack: implement fresh for lower layer #2238

metanivek opened this issue Apr 21, 2023 · 0 comments

Comments

@metanivek
Copy link
Member

A low priority leftover task from #2182.

Currently the code does not properly support using the fresh configuration flag when using a lower layer. It simply prints a message telling the user to remove the data in the lower layer path provided. To properly support this flag, we should recursively delete the data in the provided path.

(* TODO: implement recursive delete for lower root *)
failwith
(Fmt.str
"Lower root already exists but fresh = true in configuration. \
Please manually remove %s."
path)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant