Should `--no-install-ghc` be the default, with Nix integration enabled?

Đang mở
#6,860 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

@mpilgrem đang làm issue này rồi.

Từ ngày 14/3/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

component: nix type: discuss

Stack's Nix integration, when enabled, implies --system-ghc but does not imply --no-install-ghc.

In principle, a user-supplied shell.nix file might not put the needed (specified) GHC version on the path in the Nix environment without the nix-shell command failing. With --install-ghc, Stack will go on to try to install the specified GHC version.

Elsewhere, @chreekat has reported that he has experienced this.

Is --install-ghc a sensible default, when Stack's Nix integration is specified?

Ngôn ngữ chính
Haskell
Star
4.1k
Fork
857
Merge trung bình
17 giờ 32 phút
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của commercialhaskell/stack

Tất cả issue của commercialhaskell/stack

Issue tương tự

Thêm issue về Haskell

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.