Extension fields (`x-*`) for cabal.project

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

Maintainer thường phản hồi trong vòng 3 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
haskell
Lĩnh vực
build-system

Hướng nghiên cứu

Start by reading the project-file parsing code and the existing .cabal extension-field support referenced by the issue. Check how top-level fields and stanza fields are parsed and reported, then define behavior for x-* fields in both locations. Done means both examples parse without unknown-field warnings and existing project-file parsing still works.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

attention: pr-welcome type: enhancement

Describe the feature request

.cabal files already support extension fields. The feature could be extended to cabal.project and its stanzas.

Currently cabal emits a warning. Top level:

Warnings found while parsing the project file, cabal.project:
 - cabal.project: Unrecognized field 'x-foo' on line 10

Inside a stanza:

Warnings found while parsing the project file, cabal.project:
 - cabal.project: ???:10:0: Unknown field: "x-foo"

Additional context

We have a tool that modifies cabal.project files and it'd be nice if we could specify directives for it next to the piece of data it affects.

Related issues:

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

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 haskell/cabal

Tất cả issue của haskell/cabal

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.