debug version parsing?

Đang mở
#3,705 9 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 1 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
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
yaml
Lĩnh vực
cli, tooling

Hướng nghiên cứu

Start by reproducing pkg build openssh.com with VERBOSE=1 DEBUG=1, then read resolve.ts and the usePantry.ts:43 call shown in the trace. Trace how the manifest's versions block produces an empty list; done means identifying the parsing failure and confirming a fix with the portable-OpenSSH manifest.

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

Mô tả

Hi,

i try to package portable-openssh
i thought the version parsing would be easy but it seems it does not work as expected.

versions:
  url: https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/
  match: /.*\.tar\.gz/
  strip:
    - /^openssh-/
    - /.tar.gz$/
distributable:
  url: https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-{{version}}.tar.gz
  strip-components: 1
...
$ VERBOSE=1 DEBUG=1 pkg build openssh.com
...
 building openssh.com
++ resolve.ts openssh.com
{ versions: [] }
error: Uncaught Error: not-found: version: openssh.com
    throw new Error(`not-found: version: ${utils.pkg.str(spec)}`)
          ^
    at Object.resolve (file:///home/dd.linux/.pkgx/pkgx.sh/brewkit/v0.46.4/lib/usePantry.ts:43:11)
    at eventLoopTick (ext:core/01_core.js:183:11)
    at async file:///home/dd.linux/.pkgx/pkgx.sh/brewkit/v0.46.4/libexec/resolve.ts:15:15
+ PKG=

Is there a way to really debug the version parsing?

Ngôn ngữ chính
C
Star
199
Fork
142
Merge trung bình
2 giờ 33 phút
Pull request đã merge (30 ngày)
145

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.

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

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/pantry

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

Issue tương tự

Thêm issue về C

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.