Can we get a metadata file with a specific revision or hash?

Aperta
#1,421 16 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
haskell
Ambito
api, backend

Direzione di ricerca

Inizia riproducendo l'esempio di network-uri usando l'hash di plan.json e i due URL di Hackage indicati nell'issue. Esamina i metadati documentati di Hackage e il comportamento di download dei pacchetti per determinare se esiste un URL .cabal specifico per una revisione o un endpoint equivalente; il lavoro è completato quando viene identificato un meccanismo supportato e riproducibile oppure viene definita chiaramente la modifica necessaria al server.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

question

I'm currently trying to create a Nixified Haskell package set using plan.json. This is the approach I'm taking.
I need to make the process of fetching packages from Hackage using plan.json reproducible. However, there are currently these issues:

The cabal file of the network-uri package fetched through the URI like https://hackage.haskell.org/package/network-uri-2.4.2.2/network-uri-2.4.2.2.tar.gz is the originally uploaded version, not the latest revision. This is fine since the pkg-src-sha256 in plan.json also points to the hash of the original version.
I discovered that I can fetch the latest revision via https://hackage.haskell.org/package/network-uri-2.4.2.2/network-uri.cabal. The hash of that cabal file matches the pkg-cabal-sha256 in plan.json.
To make builds perfectly reproducible, I need to be able to fetch a specific version of the .cabal file rather than just the latest revision. Does Hackage currently provide a way to do this?

Lingua principale
Haskell
Stelle
471
Fork
228
Merge medio
5g 6h
PR unite (30g)
3

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di haskell/hackage-server

Tutte le issue di haskell/hackage-server

Issue simili

Altre issue su Haskell

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.