[Bug]: device_info_plus on Linux keeps the single quotes from os-release (Gentoo)
维护者通常 1 天内回复
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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).
- 主要语言
- Dart
- 星标
- 1.9k
- 派生
- 1.3k
- 平均合并
- 8 小时 43 分钟
- 30 天内合并 PR
- 13
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
fluttercommunity/plus_plugins 的其他 Issue
-
[Bug]: (share_plus) iOS drops the subject when sharing a uri可能已有人在做 @kaluli123123 于 23 天前认领。 未关闭bug triage
难度 2/5 1-3 小时 新手友好度 82/100
fluttercommunity/plus_plugins#3994 · 1 条评论 ·
维护者通常 1 天内回复
-
[Bug]: package_info_plus web throws StateError when the engine assetBase is relative可能已有人在做 @nmloc 于 10 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 35/100
fluttercommunity/plus_plugins#4005 ·
维护者通常 1 天内回复
-
[Bug]: share_plus decodes full-resolution images on the main thread when preparing iOS share previews可能已有人在做 @ananya-kaul 于 13 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 45/100
fluttercommunity/plus_plugins#4001 ·
维护者通常 1 天内回复
-
[Request]: network_info_plus: use ConnectivityManager for getWifiIP and getWifiGatewayIP from Android 7 (N), so ethernet works below Android 12可能已有人在做 @redge-munch 于 22 天前认领。 未关闭enhancement triage
难度 3/5 半天 新手友好度 22/100
fluttercommunity/plus_plugins#3998 ·
维护者通常 1 天内回复
-
[package_info_plus]: Use Flutter's compile-time build name/number on web instead of version.json可能已有人在做 @Ortes 于 29 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 25/100
fluttercommunity/plus_plugins#3989 ·
维护者通常 1 天内回复
查看 fluttercommunity/plus_plugins 的全部 Issue
相似的 Issue
-
bug | 问题
难度 2/5 1-3 小时 新手友好度 72/100
FoxSensei001/LoveIwara#137 ·
-
[dwds] WebkitDebugger.enable 5-second hardcoded timeout causes TimeoutException on large web apps未关闭package:dwds
难度 2/5 1-3 小时 新手友好度 74/100
-
难度 2/5 1-3 小时 新手友好度 82/100
google/skills_lint.dart#165 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 1 天内回复
-
good first issue help wanted translation
难度 2/5 1-3 小时 新手友好度 86/100
blankframe-tech/ThrottleIQ#23 ·
维护者通常 5 天内回复