Comments (4)
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.
The general design is to make all information available via the REST interface.
So I see it's possible to
- use the current backend
- implement (within Hackage) the REST interface, which I agree is needed anyway
- (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.
Anyway, feel free to close the issue if you believe the idea isn't worthwhile.
from hackage-server.
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)
- Downloads statistics is not working for several packages HOT 1
- Hackage accepts `.cabal` files with 2 `source-repository head` entries HOT 2
- Unique filenames for `$revision.cabal`. HOT 7
- "curl: (56) Failure when receiving data from the peer" when trying to upload HOT 7
- Hackage search showing package version inconsistency HOT 18
- Support two factor authentication HOT 2
- Cannot run shell script as a preprocessor HOT 2
- Allow uploading docs as tar.gz HOT 1
- downloads counts stored inefficiently.
- Support tar-0.6
- Replicating coverage report on user side HOT 2
- Use newer GHC version to compile? HOT 2
- Feature: Download link for revised packages
- Hackage rejects valid SPDX license bzip2-1.0.6 HOT 12
- quotes have very inaccessible / illegible styling
- new packages in inconsistent state HOT 2
- Docbuilder fails if package requests newer build-tool
- Broken documentation link HOT 1
- Actual login page instead of Basic Auth
- Only notify about dependencies that bumped to next major version HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hackage-server.