cre update fails with "invalid cross-device link" when /tmp and install dir are on different partitions
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
cre update コマンドのバイナリ置換ロジックから始め、os.Rename の呼び出しを特定します。/tmp とインストールディレクトリを異なるパーティションに置いて失敗を再現し、その後、既存の置換動作を維持したまま cross-device-link エラーなしで更新が完了することを確認します。
索引モデルが issue の本文から書いたものです。
説明
The cre update command fails to complete the update process because it attempts a rename operation across different device boundaries. This is a common issue when /tmp is mounted as a tmpfs or is on a separate partition from the user's home/installation directory.
Error Output:
Updating cre CLI...
Downloading: https://github.com/smartcontractkit/cre-cli/releases/download/v1.0.7/cre_linux_amd64.tar.gz
Error: failed to replace binary: rename /tmp/cre_update_3483520469/cre_v1.0.7_linux_amd64 /root/.cre/bin/cre: invalid cross-device link
Environment:
- OS: Debian (Linux)
- Version: upgrading from v1.0.6 to v1.0.7
- Install Path: /root/.cre/bin/cre
Suggested Fix: In the update logic, if os.Rename fails with an EXDEV error (invalid cross-device link), the tool should fall back to copying the file contents and then deleting the source, or use a temporary directory located on the same partition as the target binary.
- 主要言語
- Go
- スター
- 24
- フォーク
- 28
- 平均マージ
- 10時間 28分
- マージ済み PR(30日)
- 6
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
smartcontractkit/cre-cli のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
smartcontractkit/cre-cli#430 ·
メンテナーはふだん 1 日以内に返信
-
`cre update` installs a glibc-2.38 binary on glibc-2.36 hosts and bricks the CLI (an `_ldd2-35` asset exists but is never selected)対応中かも @Tyagiquamar が 32 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
smartcontractkit/cre-cli#582 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
smartcontractkit/cre-cli#569 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
smartcontractkit/cre-cli#507 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
smartcontractkit/cre-cli#393 ·
メンテナーはふだん 1 日以内に返信
smartcontractkit/cre-cli の issue をすべて見る
似ている issue
-
bug triage
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
FairwindsOps/nova#484 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
automated-analysis code-quality cookie
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
github/gh-aw#67517 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
[otelcol] print-config help text still requires the removed otelcol.printInitialConfig feature gate対応中かも @girishkvs が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
open-telemetry/opentelemetry-collector#16143 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue load-balancing
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
ktrubilo9/edge-proxy#53 ·