Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Support uploading the binary directly as an input

未关闭
#1,782 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@AyanSinhaMahapatra 已经在做这个了。

开始于 2025年7月31日。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
python
领域
backend

调研方向

先阅读第 117 行附近的 scanpipe/pipelines/deploy_to_develop.py,然后使用 issue 中的 PrismLauncher 或 MuseScore archive 和 binary URL 重现 d2d 项目。完成的标准是:直接二进制输入被复制到可扫描的代码库中,而不是被提取到各个 section 中,并且 from/ 和 to/ 输入都能得到正确处理。

由索引模型根据 Issue 内容生成。

描述

back2source

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.

Image

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.

Image

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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

aboutcode-org/scancode.io 的其他 Issue

查看 aboutcode-org/scancode.io 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。