[Feature]: treat two names of one install as the same version
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 30/100
Direzione di ricerca
Start from the vfox install path and the plugin interface that calls PreInstall, since the issue says the install flow checks exact names both before and after that hook. Read the handling of --as (#807) for the existing name-vs-copy distinction, then choose between passing installed names into PreInstall or letting it return aliases. Done means vfox install [email protected] followed by vfox install [email protected] reports already installed rather than downloading again, with a regression test for the canonical-name check.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
1. Your usage scenarios?
vfox checks whether a version is already installed by its exact name, both before and after PreInstall. A plugin can return a canonical name from PreInstall, and vfox checks that name again before it downloads. That works well. But PreInstall gets only the requested version, not the list of installed versions, so a plugin cannot map a new name to an install that was made under an older name.
Example, from the Erlang/OTP plugin (version-fox/vfox-erlang): on Linux, its prebuilt list showed OTP-29.1.2, so installs were named OTP-29.1.2. The plugin is changing to name the same build 29.1.2. After vfox install [email protected], running vfox install [email protected] downloads the build again and creates a second install.
This is different from vfox install --as (#807), which is for a second copy on purpose. Here the two names are one release, and one install is wanted.
2. What is your expected outcome?
Either of these:
- Pass the names of the installed versions to
PreInstall, so a plugin can return a name that is already installed, and vfox reportsalready installed. - Let
PreInstallreturn alternative names for the same install, for examplealiases = {"OTP-29.1.2"}, and check them the same way as the canonical name.
Related: #664 (plugins providing paths into the cache).
Environment: vfox 1.1.0 on Ubuntu 26.04. On main (after #807), the install flow still checks exact names before and after PreInstall, and PreInstall still gets only the version.
- Lingua principale
- Go
- Stelle
- 4k
- Fork
- 177
- Merge medio
- 1g 20h
- PR unite (30g)
- 31
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 version-fox/vfox
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
version-fox/vfox#825 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
version-fox/vfox#823 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 Mezza giornata Idoneità per principianti 45/100
version-fox/vfox#824 ·
I maintainer di solito rispondono entro 1 giorno
-
Plugins fail to load when the HOME path contains ';' or '?' (Lua package.path)Forse già presa @Xnadir l’ha presa oggi. Apertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
version-fox/vfox#821 ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG]: the Available cache ignores the environment, so one setting's list is shown for anotherForse già presa @nanami7777777 l’ha presa oggi. Apertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
version-fox/vfox#816 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di version-fox/vfox
Issue simili
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
seaweedfs/seaweed-block#443 ·
I maintainer di solito rispondono entro 1 giorno
-
HTTP `batch.Send` returns nil and inserts no rows when the block does not encodeForse già presa @Indian-boult l’ha presa oggi. Apertabug queries
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ClickHouse/clickhouse-go#2155 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
transparency-dev/tessera#1286 ·
I maintainer di solito rispondono entro 1 giorno