Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Regex doesn't work for version which contains '+' symbol

オープン
#454 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
52/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
ruby
領域
devops

調査の方向性

Start in puppet-python/manifests/pip.pp at the regexes on lines 136 and 209, using the reported Puppet and module versions as context. Reproduce the ensure_resource example with version 1.8.0+apache.incubating, then verify that the version is accepted and the module no longer attempts to uninstall airflow.

索引モデルが issue の本文から書いたものです。

説明

Hi,
Puppet 4.10.0
Module version: v1.18.2

I try install airflow from url but puppet tries to uninstall it.

ensure_resource(python::pip, 'airflow', {url => https://github.airflow/arhive/1.8.0.zip, pkgname => 'airflow', ensure => '1.8.0+apache.incubating')

Issue is that your regex doesn't like '+' in the version string '1.8.0+apache.incubating'.
file: puppet-python/manifests/pip.pp
strings:
136 if $ensure =~ /^((19|20)[0-9][0-9]-(0[1-9]|1[1-2])-([0-2][1-9]|3[0-1])|[0-9]+\.\w+\+?\w*(\.\w+)*)$/ {
209 /^((19|20)[0-9][0-9]-(0[1-9]|1[1-2])-([0-2][1-9]|3[0-1])|[0-9]+\.\w+\+?\w*(\.\w+)*)$/: {

Thank Pav

主要言語
Ruby
スター
196
フォーク
371
平均マージ
5時間 54分
マージ済み PR(30日)
5

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

voxpupuli/puppet-python のほかの issue

voxpupuli/puppet-python の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。