`--version` argument in `kup install` doesn't disambiguate between paths and branch names
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start at the kup install argument parsing and version-resolution flow, then trace how --version values are classified as branch names or local paths. Reproduce the collision described with a matching branch and directory, and define completion as a warning plus an explicit way for users to choose the intended interpretation.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
When a user runs kup install ... --version ..., the --version argument can be either a branch name or a path. If there is both a branch and a local directory with the same name, kup interprets it as a path by default. This might lead to a user accidentally installing the wrong version without realizing.
For example, say that a user is in their local clone of the kontrol repo, and runs kup install kontrol --version feature, with the intention of installing the current version of the feature branch from the external repo. However, they forgot that they had a feature directory inside their local kontrol clone where they checked out feature (for example, with git worktree add feature) and made local changes that they didn't push to the external repo. kup install kontrol --version feature will actually interpret feature as the path to the local feature directory, rather than the name of the external feature branch. As a result, the version that is installed will be different than the one the user expects without them realizing.
Ideally, I think that if the --version argument can be interpreted both ways, it might be a good idea to warn the user and provide a way to allow them to disambiguate between the two, so that this mistake can be avoided.
- Lingua principale
- Python
- Stelle
- 10
- Fork
- 2
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
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 runtimeverification/kup
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
runtimeverification/kup#149 ·
-
Update `kup list` to show nicer and shorter version strings againForse di nuovo libera @juliankuners l’ha presa 426 giorni fa e non c’è nessuna pull request aperta. Aperta
runtimeverification/kup#137 · 1 commento · 1 assegnatario ·
-
Add more Nix versions to test CI workflowForse di nuovo libera @juliankuners l’ha presa 426 giorni fa e non c’è nessuna pull request aperta. Aperta
runtimeverification/kup#136 · 1 assegnatario ·
-
Kup fails to uninstall nix profile packages by index on new nix and nix manifest versionsForse di nuovo libera @juliankuners l’ha presa 426 giorni fa e non c’è nessuna pull request aperta. Aperta
runtimeverification/kup#135 · 1 assegnatario ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
runtimeverification/kup#121 · 1 commento ·
Tutte le issue di runtimeverification/kup
Issue simili
-
Claiming namespace `apoint`Apertanamespace operations
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
EclipseFdn/open-vsx.org#13573 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
collective/icalendar#1854 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
rancher/rancher-ai-agent#412 ·
I maintainer di solito rispondono entro 6 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
TUDelftGeodesy/DePSI#134 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
HenriquesLab/rxiv-maker#335 ·