Reserve an area for dumping the Serve.t -- basically the tarball and last_modified date #28
Loading…
Reference in a new issue
No description provided.
Delete branch "index-startup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
After each tarball creation to dump the index
Also, revise startup:
This basically avoids the slow start since it reads the git in the background in the happy case. See #20 (and #18).
/cc @reynir
You don't zero out the index partition when initializing the disk. I will suggest a change (possibly in another PR) that makes it take an optional argument:
--initialize-disk=[soft|hard]
where one will just update the GPT table while the other resets everything. Or something like that.I will do a closer review on a local checkout of the code. But it looks promising to me!
@ -718,6 +723,46 @@ stamp: %S
mutable index : string ;
}
let to_string { commit_id ; modified ; repo ; index } =
We can also use Marshal like we do for checksum caches. It would make
of_string
easier, I think.@ -1120,0 +1177,4 @@
~error_handler:(fun _ ?request:_ _ _ -> ())
(Serve.dispatch serve disk (K.hook_url ()) (update serve))
in
let `Initialized th = Paf.serve service t in
Shouldn't this be
let (`Initialized th) = ... in
?Oh, apparently not! It compiles fine. It probably changed at the same time when you can write
match _ with Ok
Data data -> ...`I tried to test this, but I get the following error:
Long log output
It seems happy-eyeballs fails to connect, but ocaml-git is entirely unhelpful in explaining what went wrong.
It's entirely possible the network setup is broken.
Likely my setup is broken /o\ with a different version of opam-mirror I get the same error.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.