Giter VIP home page Giter VIP logo

Comments (4)

dcoutts avatar dcoutts commented on June 20, 2024

The right thing to do is to make all the revisions available via its general REST api and then anyone can mirror those wherever they like.

But doing the git thing directly is not something we plan to integrate into the server. The general design is to make all information available via the REST interface.

from hackage-server.

Blaisorblade avatar Blaisorblade commented on June 20, 2024

The general design is to make all information available via the REST interface.

So I see it's possible to

  1. use the current backend
  2. implement (within Hackage) the REST interface, which I agree is needed anyway
  3. (even externally) implement a mirror to a git repo, as long as the load is not excessive (which hopefully is not a problem).

I agree you need a web frontend, but I think my proposal is not in conflict. I wonder what "all information" means: the core is a persistent map from packages and ids to cabal files, but will I (eventually) be able to look on Hackage at changes to those files among two snapshots of the map?

I suspected that using Git (or maybe other VCSs) as a backend would save effort anyway, because you can use it to implement efficiently the persistent map I mentioned above (encoding packages and ids as filenames) - and for instance with Git you get delta compression for free. By choosing that backend, one gets also everything else for free - like for instance for Homebrew (which might depend even more on Git, but that's not my point).

from hackage-server.

Blaisorblade avatar Blaisorblade commented on June 20, 2024

Anyway, feel free to close the issue if you believe the idea isn't worthwhile.

from hackage-server.

dcoutts avatar dcoutts commented on June 20, 2024

Yes, all the info should be available so that you or anyone could mirror the info into a git repo.

Currently the thing that is not available is the revisions, but that should be easy to fix, and we'd be happy to accept patches to do that.

from hackage-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.