Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Installing specific version of python

未关闭
#544 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
42/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
python, ruby
领域
devops

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Ruby
星标
196
派生
371
平均合并
5 小时 54 分钟
30 天内合并 PR
5

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

voxpupuli/puppet-python 的其他 Issue

查看 voxpupuli/puppet-python 的全部 Issue

相似的 Issue

更多 Ruby Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。