Allow to condition `provides` based on the version

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

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
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
typescript
Lĩnh vực
tooling

Hướng nghiên cứu

Start by locating the code that parses and evaluates package provides entries, then trace how OpenJDK's version is available during that process. Check existing provides-related tests and add coverage for a conditional bin/jwebserver entry; done means the entry is included for version 21 and omitted for older versions.

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

Mô tả

          just need to omit it; it would be a potential upgrade to libpkgx if desired.

Originally posted by @jhheider in https://github.com/pkgxdev/pantry/pull/5468#discussion_r1516599364

Just to keep this tracked. openjdk 21+ provides bin/jwebserver while older versions does not.

It would be nice something like the following were allowed:

provides:
  - bin/java
  - program: bin/jwebserver
    if: {{version.major}} >= 21
Ngôn ngữ chính
TypeScript
Star
64
Fork
12
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

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 pkgxdev/libpkgx

Tất cả issue của pkgxdev/libpkgx

Issue tương tự

Thêm issue về TypeScript

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.