repoman-setup.sh: add a remove-repo subcommand to un-enroll repos
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 52/100
Direzione di ricerca
Start with repoman-setup.sh and its existing add-repo subcommand to find how arguments are validated and repos.json is written. Read SKILL.md for the required subcommand list. Done means remove-repo removes only whole owner/name matches, writes atomically, rejects an empty result, preserves clones and program state, and is documented; the open question about downstream state behavior may need resolution.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
repoman-setup.sh is the only supported writer for ~/.repoman/ (the skill's HARD INVARIANT says never edit it directly). It can add repos (add-repo) but has no way to remove one. So the only way to un-enroll a repo today is a hand edit of repos.json, which the skill forbids.
Proposal
Add repoman-setup.sh remove-repo (--owner <o> --name <n>)..., built to the same contract as add-repo:
- validate owner/name and match whole names only
- write atomically (temp file + mv)
- fail loud if the result would be an empty set, since
repoman_get_reposalready rejects an emptyrepos.json - leave the clone under
repos_dirand all program state/reports alone (non-destructive) - update the SKILL.md subcommand list
Open question
Programs keep per-repo state, such as scanner reports and tracked issues. Should removing a repo leave that state behind, or reconcile it? Each downstream consumer needs to define its behavior for this case.
Context
This came up while removing rossoctl/repoman from the ClawgentiOnDAM pod's enrolled set.
- Lingua principale
- Shell
- Stelle
- 8
- Fork
- 2
- Merge medio
- 2g 18h
- PR unite (30g)
- 5
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi 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.
Altre issue di rossoctl/repoman
-
[doc-drift] rossoctl/repomanApertadoc-drift
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
Re-vendor the plugin engine dir to current automation mainForse già presa @jimcadden l’ha presa 6 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
rossoctl/repoman#27 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
enhancement
Difficoltà 3/5 Mezza giornata Idoneità per principianti 42/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 3/5 Mezza giornata Idoneità per principianti 45/100
rossoctl/repoman#11 · 3 commenti ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di rossoctl/repoman
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
nolte/kamerplanter-appliance#32 ·
I maintainer di solito rispondono entro 1 giorno
-
research
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
slayerlabs/benchmarks-fabryka-ai#256 ·
I maintainer di solito rispondono entro 1 giorno
-
bug priority-medium to-agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
ONLYOFFICE/DocumentServer#3917 ·