Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Installing specific version of python

Aperta
#544 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python, ruby
Ambito
devops

Direzione di ricerca

No source file or test is named. Start by reproducing the version parameter behavior with the shown yum package on Amazon Linux 2, then trace how the Puppet module passes that parameter to yum. Done means a specific package version such as 3-0:3.7.4-1.amzn2.0.4.x86_64 is installed instead of only the package name.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.14
  • Ruby: 2.5.1
  • Distribution: Puppet Server - Ubuntu 18.04, Puppet Node - Amazon Linux 2
  • Module version: 4.0.0

How to reproduce (e.g Puppet code you use)

Simply set the version to a specific yum package in the form name-epoch:ver-rel.arch (3-0:3.7.4-1.amzn2.0.4.x86_64)

What are you seeing

If i check my configured repository if have the following python3 versions available.

repoquery --show-duplicates python3
python3-0:3.7.4-1.amzn2.0.3.i686
python3-0:3.7.4-1.amzn2.0.3.x86_64
python3-0:3.7.4-1.amzn2.0.4.i686
python3-0:3.7.4-1.amzn2.0.4.x86_64
python3-0:3.7.6-1.amzn2.0.1.i686
python3-0:3.7.6-1.amzn2.0.1.x86_64

Locally running "yum install python3-0:3.7.4-1.amzn2.0.4.x86_64" installs the version i specify.

However when using the version parameter of this puppet module it only supports the first number of the version string.

So if configure a version parameter of
3-0:3.7.4-1.amzn2.0.4.x86_64
It simply reads the "3" at the start and ignores everything else.
Therefore the actual package installed by yum is just python3

What behaviour did you expect instead

Ability to support package versions other than default repo latest versions.

Lingua principale
Ruby
Stelle
196
Fork
371
Merge medio
5h 54m
PR unite (30g)
5

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di voxpupuli/puppet-python

Tutte le issue di voxpupuli/puppet-python

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.