netrc should be able to ignore some tokens like 'protocol'
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Python
- Star
- 77.2k
- Fork
- 35.9k
- Chỉ số merge pull request
- Chỉ số pull request đang chờ
Mô tả
Feature or enhancement
Proposal:
netrc._parse() rejects unknown tokens.
So far so good except some tools like git also use netrc files for authentication purposes through git-credential-netrc helper.
The issue is that git-credential-netrc expects a few other tokens like protocol that are currently rejected by netrc._parse()
It would be nice to be able to just ignore those tokens instead of failing the parsing of the netrc file.
I can't tell whether we should just register these exact tokens as "to be ignored", or if it would be better to have a way for netrc users to register the tokens they wish to ignore.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
none found.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu từ điểm vào netrc._parse() và kiểm tra cách parser xử lý token giao thức được git-credential-netrc sử dụng. Hoàn thành khi một netrc chứa các token như vậy được phân tích mà không xảy ra lỗi, đồng thời vẫn giữ nguyên hành vi phân tích hiện có.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- backend
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100