[Bug]: device_info_plus on Linux keeps the single quotes from os-release (Gentoo)
Maintainer thường phản hồi trong vòng 1 ngà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
- 35/100
Hướng nghiên cứu
Read device_info_plus_linux.dart, focusing on _Unquote.unquote(), and inspect the existing Linux tests for os-release parsing. Reproduce with single-quoted values such as ID='gentoo', then verify the reported id, name, and prettyName match the unquoted expected values. An open linked pull request already addresses this issue.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Platform: Linux · Plugin: device_info_plus · Version: 13.3.0 (also current main)
Steps to reproduce
- Run an app on Gentoo (or any distro whose
/etc/os-releaseuses single quotes). Gentoo's file now looks like this:NAME='Gentoo' ID='gentoo' PRETTY_NAME='Gentoo Linux' VERSION='2.18' VERSION_ID='2.18' - Call
DeviceInfoPlugin().linuxInfo.
Expected: id == 'gentoo', name == 'Gentoo', prettyName == 'Gentoo Linux'.
Actual: the quotes are kept: id == "'gentoo'", name == "'Gentoo'", prettyName == "'Gentoo Linux'", so a check like info.id == 'gentoo' is false.
Cause: _Unquote.unquote() in device_info_plus_linux.dart strips only double quotes. os-release(5) allows values in double or single quotes, and Gentoo switched to single quotes this year (Ansible and Facter both had to patch their parsers for it).
- Ngôn ngữ chính
- Dart
- Star
- 1.9k
- Fork
- 1.3k
- Merge trung bình
- 8 giờ 43 phút
- Pull request đã merge (30 ngày)
- 13
Chuẩn bị môi trường
- 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 fluttercommunity/plus_plugins
-
[Bug]: (share_plus) iOS drops the subject when sharing a uriCó thể đã có người làm @kaluli123123 đã nhận 24 ngày trước. Đang mởbug triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
fluttercommunity/plus_plugins#3994 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: package_info_plus web throws StateError when the engine assetBase is relativeCó thể đã có người làm @nmloc đã nhận 11 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
fluttercommunity/plus_plugins#4005 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: share_plus decodes full-resolution images on the main thread when preparing iOS share previewsCó thể đã có người làm @ananya-kaul đã nhận 14 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
fluttercommunity/plus_plugins#4001 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Request]: network_info_plus: use ConnectivityManager for getWifiIP and getWifiGatewayIP from Android 7 (N), so ethernet works below Android 12Có thể đã có người làm @redge-munch đã nhận 23 ngày trước. Đang mởenhancement triage
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 22/100
fluttercommunity/plus_plugins#3998 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[package_info_plus]: Use Flutter's compile-time build name/number on web instead of version.jsonCó thể đã có người làm @Ortes đã nhận 30 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 25/100
fluttercommunity/plus_plugins#3989 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của fluttercommunity/plus_plugins
Issue tương tự
-
Push workflow fails: oversized artifacts cannot be pushed to `app` branchCó thể đã có người làm @marcnause đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
fossasia/magic-epaper-app#724 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug: nakładanie się animacji paneli (120 ms) przy przełączaniu między Odkrywaj a UstawieniamiĐang mởpriority: high scope: frontend type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
GonsiorHack/czyPrzejade#15 ·
-
fix: jaspr serve keyboard shortcuts (r/R/l/d/q) don't work on WindowsCó thể đã có người làm @lewinpauli đã nhận hôm nay. Đang mởbug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 3 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
berkmancenter/frankly#729 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ORMĐang mởBackend SW VTA
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 61/100
aau-giraf/visual-tangible-artefacts#376 ·
Maintainer thường phản hồi trong vòng 1 ngày