Incorrect jq example in README.md

Đang mở
#331 0 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 2 ngày

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

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
45/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
markdown
Lĩnh vực
documentation

Hướng nghiên cứu

Open README.md and inspect the certificate-expiration jq example. Verify the date comparison behavior and update the example so the date values are comparable with jq's now value, then confirm the README shows the intended expired-certificate results.

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

Mô tả

The top level README.md contains the following example:

# List all Common Names of certificates that are expired
certigo dump --json $INPUT | jq -r '.certificates[] | select(.not_after < now) | .subject.common_name'

This is incorrect because afaik jq cannot compare the JSON string dates with the Unix epoch seconds returned by now. Would have to use fromdate or fromdateiso8601 to make the values comparable.

The use of the incorrect example would likely cause a silent failure since the comparison will be false for pretty much any date string input.

Ngôn ngữ chính
Go
Star
1k
Fork
77
Merge trung bình
6 ngày 4 giờ
Pull request đã merge (30 ngày)
10

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 square/certigo

Tất cả issue của square/certigo

Issue tương tự

Thêm issue về Go

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.