Virtualenv>=20.0.0 has new version command output breaking virtualenv_version fact
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Read lib/facter/virtualenv_version.rb and reproduce the fact with both virtualenv --version outputs shown in the issue. Update the parsing so virtualenv_version is defined for versions before and from 20.0.0, then verify the fact no longer raises the reported nil error.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Affected Puppet, Ruby, OS and module versions/distributions
We are running old everything, but the facter fact, https://github.com/voxpupuli/puppet-python/blob/master/lib/facter/virtualenv_version.rb, hasn't been changed in a while.
How to reproduce (e.g Puppet code you use)
Try to use virtualenv_version fact when virtualenv>=20.0.0 is installed
What are you seeing
error while resolving custom fact "virtualenv_version": undefined method `[]' for nil:NilClass
What behaviour did you expect instead
virtualenv_version is defined with a version value.
Any additional information you'd like to impart
This happens because virtualenv>=20.0.0 is a major rewrite and changes the output of the virtualenv --version command.
Old virtualenv:
$ virtualenv --version
16.7.5
New virtualenv:
$ ~/venv/bin/virtualenv --version
virtualenv 20.0.1 from /home/clark/venv/lib/python2.7/site-packages/virtualenv/__init__.pyc
The fact's output parsing will need to be updated to handle both cases.
- Ngôn ngữ chính
- Ruby
- Star
- 196
- Fork
- 371
- Merge trung bình
- 5 giờ 54 phút
- Pull request đã merge (30 ngày)
- 5
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của voxpupuli/puppet-python
-
Requirements not installedĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 67/100
voxpupuli/puppet-python#759 ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
voxpupuli/puppet-python#743 · 1 bình luận ·
-
enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
voxpupuli/puppet-python#721 · 1 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
voxpupuli/puppet-python#711 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 52/100
voxpupuli/puppet-python#673 · 1 bình luận ·
Tất cả issue của voxpupuli/puppet-python
Issue tương tự
-
Missing zh-CN translation: components/common/CommunitySolution.tsx:communitySolution.authorsSolutionĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
openstreetmap/openstreetmap-website#7554 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
bensheldon/good_job#1904 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
riscv/riscv-unified-db#2785 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Limit which neighbourhoods a site admin can changeCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởsecurity
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
geeksforsocialchange/PlaceCal#3838 ·
Maintainer thường phản hồi trong vòng 1 ngày