posit-dev / posit-dev/rsconnect-python
Checkum mismatch in `write-manifest shiny` for requirements.txt
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 37
- 派生
- 28
- 平均合并
- 1 天 3 小时
- 30 天内合并 PR
- 7
描述
Hey guys,
this is related to issue #429 but different as I don't manually change the requirements file. On my windows machine (win11 and latest version of rsconnect, 1.31.1), I run this command to create the requirements:
rsconnect write-manifest shiny --requirements-file "pyproject.toml" --overwrite --verbose .
This runs flawlessly but when I deploy to shinyapps.io (okay soon deprecated 😁), I get the error that the checksum of the requirements file does not match and indeed:
manifest.json:
...
"files": {
"requirements.txt": {
"checksum": "9575666e0dd133b66c6ffad2ee76d0a7"
},
...
and the manual calculation:
certutil -hashfile requirements.txt MD5
MD5-Hash von requirements.txt:
5091c1d66ce4ff619a9787030deea0f8
Manually replacing the MD5 checksum in manifest.json results in successful deployment. However, when I run this command before automated deployment with GitHub Actions on Linux, there is no issue. Let me know if you need further information, or if I'm just doing it wrong 🙄
Cheers,
Tobi
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
在 Windows 上使用 pyproject.toml 重现 rsconnect write-manifest shiny 命令,然后将生成的 requirements.txt 与其在 manifest.json 中的校验和进行比较。将 Windows 的输出与 Linux GitHub Actions 的结果进行对比,并验证清单校验和与文件内容匹配,以便部署无需手动编辑即可成功。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- cli
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 58/100