Stack not finding correct GHC via nixpkgs
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- haskell
- Ambito
- build-system
Direzione di ricerca
Leggi src/Stack/Nix.hs e src/Stack/Config.Nix.hs per tracciare come viene selezionato nixpkgs e come viene derivato il nome del pacchetto GHC. Riproduci i fallimenti per un NIX_PATH obsoleto e per un resolver il cui pacchetto GHC usa il nome più breve, quindi stabilisci il comportamento previsto di fallback o mapping e verifica entrambi i casi.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hello - you may already be aware of this, but there's two ways in which the stack/nix infrastructure can go wrong:
- The nix expression generated in
src/Stack/Nix.hsuseswith (import <nixpkgs> {})- this then relies on the state on the user's machine. This<nixpkgs>will be the nixpkgs in the$NIX_PATH, which might be quite out of date since many people have moved over wholesale to flakes these days. - The
nixCompilerVersionfunction insrc/Stack/Config.Nix.hswill (not unreasonably) look for a ghc version innixpkgsthat has the name formathaskell.compiler.ghc<major><minor><patch>, likehaskell.compiler.ghc964. This should work except that the ghc versions in nixpkgs don't always seem to adhere to this format, eghaskell.compiler.ghc96is ghc 9.6.4, andhaskell.compiler.ghc964doesn't exist.
I'm not sure what the best solution to this is, it might be worth storing a map from resolver -> (nixpkgs commit, nixpkgs ghc package name) in the source code, and then falling back to using the existing approach if a resolver is requested that isn't in the map.
- Lingua principale
- Haskell
- Stelle
- 4.1k
- Fork
- 857
- Merge medio
- 17h 32m
- PR unite (30g)
- 5
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di commercialhaskell/stack
-
Build Stack against Cabal >= 3.18Forse già presa @mpilgrem l’ha presa 14 giorni fa. Aperta
commercialhaskell/stack#6976 · 1 assegnatario ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
commercialhaskell/stack#6954 ·
-
Support type-checking without compilingForse di nuovo libera @mpilgrem l’ha presa 135 giorni fa e non c’è nessuna pull request aperta. Apertacomponent: build type: enhancement
commercialhaskell/stack#6951 · 3 reazioni · 1 assegnatario ·
-
Support semaphore-compat 2.0.0Forse di nuovo libera @mpilgrem l’ha presa 158 giorni fa e non c’è nessuna pull request aperta. Apertacomponent: build in progress type: enhancement
commercialhaskell/stack#6934 · 3 commenti · 1 assegnatario ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
commercialhaskell/stack#6864 · 1 commento ·
Tutte le issue di commercialhaskell/stack
Issue simili
-
documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
alunduil/network-arbitrary#293 ·
I maintainer di solito rispondono entro 1 giorno
-
area:client bug priority-low
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
bug triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 91/100
simplex-chat/simplex-chat#8372 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
compiler-explorer/compiler-explorer#9710 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno