Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Confusing content: evaluates the expression `hash "package-lock.json"` to derive the final key `npm-d5ea0750`

オープン 初心者向け
#46,499 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
86/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github-actions, typescript
領域
documentation

調査の方向性

issueでリンクされている依存関係のキャッシュに関する記事を読み、その例を式の記事にある hashFiles() のドキュメントと比較してください。表示されている最終キーがドキュメントの出力と一致するか確認し、誤解を招く表現または例を修正してください。両方の記事でハッシュ式とその出力が一貫して説明されていれば完了です。

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

説明

actions builder persona content
Code of Conduct
What article on docs.github.com is affected?

https://docs.github.com/en/actions/reference/workflows-and-actions/dependency-caching

What part(s) of the article would you like to see updated?

The document says:

For example, you can create a key using an expression that calculates the hash of an npm package-lock.json file. So, when the dependencies that make up the package-lock.json file change, the cache key changes and a new cache is automatically created.

npm-${{ hashFiles('package-lock.json') }}

GitHub evaluates the expression hash "package-lock.json" to derive the final key.

npm-d5ea0750

However, https://docs.github.com/en/actions/reference/workflows-and-actions/expressions does not document any hash expression, and my tests show that hashFiles() produces the full SHA256 value per https://docs.github.com/en/actions/reference/workflows-and-actions/expressions#hashfiles, not the abbreviated string like d5ea0750.

Additional information

No response

主要言語
TypeScript
スター
21.1k
フォーク
69.3k
平均マージ
12時間 11分
マージ済み PR(30日)
90

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

github/docs のほかの issue

github/docs の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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