cabal-install reconfigures each time PATH changes
Maintainer thường phản hồi trong vòng 3 ngày
@sheaf đang làm issue này rồi.
Từ ngày 23/10/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Since 55aba1413b1b24f4eefa573300a8787f4804f734 (#10817 fixing #2015), cabal-install re-configures anytime PATH changes. That's a horrible user experience, in my opinion.
I think that commit was the wrong way to fix #2015. In that ticket, people were (rightfully) complaining that cabal repl inherited a stale PATH. This is because cabal baked in the value of PATH into the ghc ConfiguredProgram at the time of configuring ghc. I think that's nuts, and the fix was somehow to always reconfigure???
Even PR #10817 agrees that this is not ideal: "An alternative approach would be to stop baking the PATH variable into the environment of programs, but this would require more substantial changes to how Cabal manages environment variables." and I agree.
I argue we should change Cabal to store PATH symbolically (as an un-expanded variable) in ConfiguredProgram, and expand that variable in runProgramInvocation at program invocation time. This allows all of the existing override logic to work as before, but it does not require baking in PATH into ConfiguredProgram and thus completely sidesteps the issue. Then we no longer need to reconfigure if PATH changes.
- Ngôn ngữ chính
- Haskell
- Star
- 1.8k
- Fork
- 766
- Merge trung bình
- 5 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 27
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của haskell/cabal
-
needs triage type: enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 3 ngày
-
needs triage type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
haskell/cabal#12568 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
needs triage type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
haskell/cabal#12525 · 3 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Required version of `cabal-install` to build CabalCó thể đã có người làm @philderbeast đã nhận 24 ngày trước. Đang mởdocumentation type: discussion
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
haskell/cabal#12477 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Document which are our LTS releasesCó thể đã có người làm @KeuqS đã nhận 41 ngày trước. Đang mởdocumentation type: discussion
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
haskell/cabal#12373 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của haskell/cabal
Issue tương tự
-
bug desktop
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
simplex-chat/simplex-chat#8291 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: C# programs with top-level statements fail to compileCó thể đã có người làm @AsyncNigam đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
compiler-explorer/compiler-explorer#9625 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
reflex-0.10Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
commercialhaskell/stackage#8180 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
OpenZeppelin/canton-contracts#140 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
takeInterval yields nothing, dropInterval drops nothingCó thể đã có người làm @GuillaumedeVolpiano đã nhận 1 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
composewell/streamly#3271 ·