Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

TLS guide repeats certs/ in the certificate directory

Đang mở Phù hợp với người mới
#3,156 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

@maheshrijal đang làm issue này rồi.

Từ ngày 26/10/2026.

  • #3157 của @maheshrijal — đang mở

Đá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
92/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
markdown, shell
Lĩnh vực
documentation

Hướng nghiên cứu

Mở docs/guides/tls-encryption.md tại ví dụ tạo chứng chỉ trong phần điều kiện tiên quyết. Kiểm tra xem đường dẫn của cd có khớp với thư mục được tạo bởi mkdir ngay trước đó hay không, sau đó xác minh lệnh đã chỉnh sửa đi vào thư mục đó; hoàn tất khi lệnh chạy thành công và in ra đường dẫn mong đợi.

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

Mô tả

Location: https://prometheus.io/docs/guides/tls-encryption/#pre-requisites

The certificate-generation example in docs/guides/tls-encryption.md creates /home/prometheus/certs/example.com, then tries to enter /home/prometheus/certs/certs/example.com:

mkdir -p /home/prometheus/certs/example.com && cd /home/prometheus/certs/certs/example.com

In a fresh Alpine 3.21.9 container with a writable /home/prometheus, this line exits 2:

sh: cd: line 0: can't cd to /home/prometheus/certs/certs/example.com: No such file or directory

Expected: cd enters the directory just created. Removing the repeated certs/ from the cd path makes the line exit 0; appending && pwd prints /home/prometheus/certs/example.com.

The reproduction executes only the directory-selection line. The following openssl command is a separate command; without errexit, the full pasted block can continue from the previous directory after cd fails.

Ngôn ngữ chính
TypeScript
Star
721
Fork
1.2k
Merge trung bình
1 ngày 19 giờ
Pull request đã merge (30 ngày)
18

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 prometheus/docs

Tất cả issue của prometheus/docs

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.