Closed gabrielgio closed 1 month ago
Hello,
I'd like to know if you are interested in adding an endpoint to return tar files.
I would add something like:
mux.HandleFunc("GET /{name}/archive/{ref...}", d.Archive)
It would return a .tar.gz file from this following example:
.tar.gz
curl https://git.icyphox.sh/legit/archive/v0.2.2.tar.gz -o /dev/null
The archive is placeholder let me know if want a different path.
archive
For the ui (like in this page^1) I'd add tar.gz next to browse and log
tar.gz
browse
log
For the implementation I'd do an in-memory implementation, so no storage would be required.
Let me know if you are interested and I can submit the patch myself :smile:
Hi! Thanks for writing this up! I really like this, and would gladly accept a patch. :)
Hello,
I'd like to know if you are interested in adding an endpoint to return tar files.
I would add something like:
It would return a
.tar.gz
file from this following example:The
archive
is placeholder let me know if want a different path.For the ui (like in this page^1) I'd add
tar.gz
next tobrowse
andlog
For the implementation I'd do an in-memory implementation, so no storage would be required.
Let me know if you are interested and I can submit the patch myself :smile: