Support uploading the binary directly as an input
维护者通常 1 天内回复
@AyanSinhaMahapatra 已经在做这个了。
开始于 2025年7月31日。
评估
调研方向
先阅读第 117 行附近的 scanpipe/pipelines/deploy_to_develop.py,然后使用 issue 中的 PrismLauncher 或 MuseScore archive 和 binary URL 重现 d2d 项目。完成的标准是:直接二进制输入被复制到可扫描的代码库中,而不是被提取到各个 section 中,并且 from/ 和 to/ 输入都能得到正确处理。
由索引模型根据 Issue 内容生成。
描述
There are two issues encountered when uploading the binary directly as an input instead of an archive:
- we do not have a
to/side at all (because we could not extract from the binary) - we have the binary extracted with it's internal sections in files (and this causes errors in the symbol extraction/mapping)
If you start a d2d project with the following links as inputs:
https://github.com/PrismLauncher/PrismLauncher/archive/refs/tags/9.1.zip#from
https://github.com/PrismLauncher/PrismLauncher/releases/download/9.1/PrismLauncher-Windows-MinGW-w64-Setup-9.1.exe#to
We get only a to/ side and no from/ side as we cannot extract the binary.
If you start a d2d project with the following links as inputs:
https://github.com/PrismLauncher/PrismLauncher/archive/refs/tags/9.1.zip#from
https://github.com/PrismLauncher/PrismLauncher/releases/download/9.1/PrismLauncher-Windows-MinGW-w64-Setup-9.1.exe#to
We get only a to/ side and no from/ side as we cannot extract the binary.
If you start a d2d project with the following links as inputs:
https://github.com/musescore/MuseScore/archive/refs/tags/v4.4.4.zip#from
https://github.com/musescore/MuseScore/releases/download/v4.4.4/MuseScore-Studio-4.4.4.243461245-x86_64.paf.exe#to
The binary is extracted into it's sections into files and this is not intended.
We need to just copy the binary to the scannable codebase instead of trying to extract the contents into the scannable codebase. This is done here. This is a follow up to this commit where we tried to fix this initially but it seems like there are more cases.
Other project examples with incorrectly extracted binaries from https://github.com/aboutcode-org/scancode.io/issues/1470:
sqlitebrowser-v3.12.2
Notepad3-RC3_6.24.309.1
Tengine-lite-v1.2-pre
keepassxc-2.3.4
sdrangel-v7.22.5
FreeCAD-1.0.0
- 主要语言
- Python
- 星标
- 223
- 派生
- 214
- 平均合并
- 2 天 3 小时
- 30 天内合并 PR
- 13
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
aboutcode-org/scancode.io 的其他 Issue
-
ignored_dependency_scopes does not exclude npm devDependencies可能已有人在做 @MGpromax 于 64 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 74/100
aboutcode-org/scancode.io#2215 ·
维护者通常 1 天内回复
-
Delivery Error in scan_single_package: No connection adapters were found for '/notifications/send_scan_notification/可能重新可做 @akshat-lakhera 于 11 天前认领,目前没有进行中的 PR。 未关闭bug
难度 2/5 1-3 小时 新手友好度 70/100
aboutcode-org/scancode.io#2206 · 1 条评论 ·
维护者通常 1 天内回复
-
update `run` cli command to run pipelines without an input可能已有人在做 @NoiceHax 于 76 天前认领。 未关闭nice-to-have
难度 2/5 1-3 小时 新手友好度 72/100
aboutcode-org/scancode.io#2203 · 1 条评论 ·
维护者通常 1 天内回复
-
Local developement docs are outdated可能已有人在做 @nik-767 于 106 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 82/100
aboutcode-org/scancode.io#2197 · 1 条评论 ·
维护者通常 1 天内回复
-
maven-heaven: `map_shaded_classes_to_maven_packages` ignores POMs present only in the from/ codebase, leaving all shaded .class resources unmapped可能已有人在做 @chinyeungli 于 2 天前认领。 未关闭
aboutcode-org/scancode.io#2284 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 aboutcode-org/scancode.io 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
pydantic/pydantic-ai#12091 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
CSS enhancement good first issue
难度 2/5 1-3 小时 新手友好度 70/100
pychess/pychess-variants#2448 ·
维护者通常 1 天内回复
-
Bump locked PyTensor so Apple clang 21 does not pass -ld64可能已有人在做 @drbenvincent 今天认领。 未关闭bug dev ops
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 2 天内回复
-
ai_p2 bug comp-datalake
难度 2/5 1-3 小时 新手友好度 85/100
ClickHouse/ClickHouse#128306 · 1 条评论 ·
维护者通常 1 天内回复