Clean up mkConf / mkConfig / mkConfigAbs naming in cardano-testnet
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Testnet.Start.Types has three functions for creating Conf values:
mkConf :: (HasCallStack, MonadTest m) => FilePath -> m Conf- annotates the path in test output, then callsmkConfigmkConfig :: FilePath -> Conf- pure, adds trailing separator and defaultsmkConfigAbs :: FilePath -> IO Conf- makes path absolute, creates directory, callsmkConfig
The names do not communicate the differences.
mkConf vs mkConfig looks like a typo rather than a meaningful distinction.
mkConfigAbs conflates "make path absolute" with "run in IO".
Suggested cleanup (open to better ideas):
mkConfigstays as the pure coremkConfbecomes something likemkConfigForTestormkConfigAnnotatedto signal theMonadTestdependencymkConfigAbsbecomes something likemkConfigAbsoluteormkConfigIO
Or collapse them if the separate variants are not pulling their weight.
Context: Flagged by @carbolymer in https://github.com/IntersectMBO/cardano-node/pull/6346 review comments.
- Ngôn ngữ chính
- Haskell
- Star
- 3.2k
- Fork
- 760
- Merge trung bình
- 2 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 21
Chuẩn bị môi trường
- Có Dockerfile hoặc 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 IntersectMBO/cardano-node
-
Stale
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 75/100
IntersectMBO/cardano-node#6597 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Stale
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 72/100
IntersectMBO/cardano-node#6578 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
IntersectMBO/cardano-node#6522 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 30/100
IntersectMBO/cardano-node#6729 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
increase in memory usageĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 28/100
IntersectMBO/cardano-node#6718 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của IntersectMBO/cardano-node
Issue tương tự
-
component: hls-refactor-plugin status: needs triage type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 60/100
haskell/haskell-language-server#5111 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
alunduil/network-arbitrary#193 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
alunduil/siren-json.hs#245 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
infrastructure
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
alunduil/collection-json.hs#393 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày