pip with ensure => latest can spuriously skip the install
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
The issue does not name a file or test; start by locating the pip resource's ensure => latest check and reproduce the shown pip search ... | grep ... command. Done means related package results no longer make an unrelated package appear installed, with a regression test for the Google package example.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The pip resource checks whether the latest version is installed using essentially pip search pkg_name | grep -i INSTALLED.*latest. This can give false positives if you have one or more other related packages already installed, because pip search matches package names and descriptions. It doesn't seem to have an option for matching the package name exactly.
I observed this in practice when installing multiple Google API packages, for example:
$pip_packages = [
'google-cloud-core',
'google-cloud-dataflow',
'google-cloud-storage',
'google-api-python-client',
]
python::pip { $pip_packages:
ensure => latest,
virtualenv => $virtual_env_dir,
owner => $::user,
}
And google-api-python-client spuriously matched a bunch of installed packages:
Debug: Executing with ...: 'pip search google-api-python-client | grep -i INSTALLED | grep -i latest'
Debug: /Stage[main]/Python::Pip[google-api-python-client]/Exec[pip_install_google-api-python-client]/unless: INSTALLED: 0.0.2 (latest)
Debug: /Stage[main]/Python::Pip[google-api-python-client]/Exec[pip_install_google-api-python-client]/unless: INSTALLED: 0.5.0 (latest)
Debug: /Stage[main]/Python::Pip[google-api-python-client]/Exec[pip_install_google-api-python-client]/unless: INSTALLED: 0.7.5 (latest)
Debug: /Stage[main]/Python::Pip[google-api-python-client]/Exec[pip_install_google-api-python-client]/unless: INSTALLED: 0.22.1 (latest)
Debug: /Stage[main]/Python::Pip[google-api-python-client]/Exec[pip_install_google-api-python-client]/unless: INSTALLED: 2.6.0 (latest)
Debug: /Stage[main]/Python::Pip[google-api-python-client]/Exec[pip_install_google-api-python-client]/unless: INSTALLED: 1.6.0 (latest)
- Lenguaje dominante
- Ruby
- Estrellas
- 196
- Forks
- 371
- Merge medio
- 5 h 54 min
- PR fusionados (30 d)
- 5
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de voxpupuli/puppet-python
-
Requirements not installedAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 67/100
voxpupuli/puppet-python#759 ·
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
voxpupuli/puppet-python#743 · 1 comentario ·
-
enhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
voxpupuli/puppet-python#721 · 1 reacción ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
voxpupuli/puppet-python#711 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 52/100
voxpupuli/puppet-python#673 · 1 comentario ·
Todos los issues de voxpupuli/puppet-python
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
greenelab/lab-website-template#357 · 1 comentario ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
shakacode/react_on_rails#5295 ·
Los mantenedores suelen responder en 1 día
-
account: profile bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 5 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
elastic/elasticsearch-ruby#3078 ·