posit-dev / posit-dev/rsconnect-python

Checkum mismatch in `write-manifest shiny` for requirements.txt

オープン
#855 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Python
スター
37
フォーク
28
平均マージ
1日 3時間
マージ済み PR(30日)
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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

pyproject.tomlを使用してWindows上でrsconnect write-manifest shinyコマンドを再現し、生成されたrequirements.txtmanifest.json内のそのチェックサムと比較します。Windowsの出力をLinuxのGitHub Actionsの結果と比較し、デプロイが手動編集なしで成功するように、マニフェストのチェックサムがファイルの内容と一致することを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
cli
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
58/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。