Commit Graph

33 Commits (2a1f972de6f9f1a633f8f6762d0b321a0ffbc723)
 

Author SHA1 Message Date
Jordan Orelli 2a1f972de6 require basic auth for upload 3 years ago
Jordan Orelli 737ea2f2af prevent duplicate uploads 3 years ago
Jordan Orelli 49a3a47e1d upload not working yet 3 years ago
Jordan Orelli d13fdd4e1a ok sure 3 years ago
Jordan Orelli afba9ae29e more junk to delete 3 years ago
Jordan Orelli 1bc14f79ff remove some old useless files 3 years ago
Jordan Orelli 993982441c remove dead code, handle errors better 3 years ago
Jordan Orelli 1a04bde6ef can serve the mod file endpoint now 3 years ago
Jordan Orelli f1ee16b319 serve zip files 3 years ago
Jordan Orelli 4462b61a08 add info endpoint 3 years ago
Jordan Orelli 1a753ca5e5 add @latest endpoint 3 years ago
Jordan Orelli 01cd3216c5 some cleanup 3 years ago
Jordan Orelli 0087101de9 ok, stepping into an actual structure now
proved that I could manage the protocol with something that was faked,
starting to try to serve something for real. The idea is that you would
have a directory that contains all of your module zips, and the mir
server would serve modules from that directory, and it would query that
directory to find out which versions were available and which were
latest.

I'm not sure about the version list and retractions. It seems like if a
module is retracted you still want it to be in the list of available
modules, and that a retraction is not signaled by the absence of that
version in the list endpoint, but by the module file of the latest
version itself.

    /srv/mir
    └── modules
        └── orel.li
            └── mir@v0.0.0-pre1.zip
3 years ago
Jordan Orelli 042ccd2d73 hm i dunno about that index concept 3 years ago
Jordan Orelli 9d454a752e right more renaming stuff 3 years ago
Jordan Orelli 1e569c08cd mir, perhaps, is this project's name 3 years ago
Jordan Orelli 938f3e2f33 construct zip in memory
I don't like this but I want to get on with my day
3 years ago
Jordan Orelli 5e951ab46a move temp file into place (broken)
this doens't work if os.TempDir and the current directory are in
different filesystems because it's a cross-filesystem move. Annoying af
honestly. I think I have to use zip.Create instead of zip.CreateFromDir
and handle the file exclusion myself.

I could in theory create the zip into memory and then write it to avoid
CreateFromDir trying to circularly zip up its own output but I don't
like that.
3 years ago
Jordan Orelli 953ffbdef4 create zip archive in temp dir
ok so there are some problems when you're creating the archive but
you're at the root of the project. Namely, the mod package tries to put
the zip inside of itself. So we have to go around that by creating the
zip somewhere else and moving it. This is the first step in that
process.
3 years ago
Jordan Orelli a33a47e940 improve zip path handling 3 years ago
Jordan Orelli 095a769a5e sure why not 3 years ago
Jordan Orelli 9b5b6a3d8f cleaning some stuff up 3 years ago
Jordan Orelli 208bb98577 organize 3 years ago
Jordan Orelli 4122b1d5bf ignore 3 years ago
Jordan Orelli e70a446c5a can create zips now 3 years ago
Jordan Orelli 19fdb9cc05 should have an archive command i guess 3 years ago
Jordan Orelli 0ca2f74477 maybe this index idea is dumb 3 years ago
Jordan Orelli 2a8097a6f0 start putting index in a file 3 years ago
Jordan Orelli a2bdee608c some junk 3 years ago
Jordan Orelli 0bbae3091a ok flags 3 years ago
Jordan Orelli daa904b591 figured out how to serve something w00t 3 years ago
Jordan Orelli 778a2f135a fix bugs that made it not compile lol 3 years ago
Jordan Orelli dbeba4fa94 switching computers 3 years ago