netrc should be able to ignore some tokens like 'protocol'
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 77.2k
- Fork
- 35.9k
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia dal punto di ingresso netrc._parse() e verifica come il parser gestisce il token di protocollo usato da git-credential-netrc. Il lavoro è completato quando un netrc contenente token di questo tipo viene analizzato senza errori, mantenendo invariato il comportamento di parsing esistente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- backend
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100