Confusing content: evaluates the expression `hash "package-lock.json"` to derive the final key `npm-d5ea0750`
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 新手友好度
- 86/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- github-actions, typescript
调研方向
阅读 issue 中链接的依赖缓存文章,并将其中的示例与表达式文章中 hashFiles() 的文档进行比较。确认显示的最终键是否与文档所述输出一致,然后修改容易误导的措辞或示例。两篇文章对哈希表达式及其输出的描述保持一致时,即为完成。
由索引模型根据 Issue 内容生成。
描述
Code of Conduct
- I have read and agree to the GitHub Docs project's 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
keyusing an expression that calculates the hash of an npmpackage-lock.jsonfile. So, when the dependencies that make up thepackage-lock.jsonfile 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 分钟
- 30 天内合并 PR
- 90
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/docs 的其他 Issue
-
`Managing a branch protection rule` should mention that `merge queues` for `private repositories` are only supported by `enterprise plans`可能已有人在做 @Kiddo4993 于 1 天前认领。 未关闭content driver persona help wanted
难度 1/5 1 小时以内 新手友好度 86/100
维护者通常 1 天内回复
-
content dependabot driver persona
难度 2/5 1-3 小时 新手友好度 69/100
维护者通常 1 天内回复
-
Remove models already deprecated (GPT-4o, GPT-5.1 series, Gemini 3 Pro) from "Model multipliers for annual plans on request-based billing (legacy)"可能重新可做 关联的 PR 已关闭且未合并。 未关闭builder persona content driver persona
难度 1/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
builder persona
难度 1/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
builder persona content copilot
难度 1/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
相似的 Issue
-
b:minor bug
难度 2/5 1-3 小时 新手友好度 76/100
software-mansion/argent#1698 ·
维护者通常 1 天内回复
-
e2e-failure ready-to-code
难度 2/5 1-3 小时 新手友好度 72/100
redhat-developer/rhdh-plugin-export-overlays#4624 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
better-auth/better-auth#12132 · 1 个 reaction ·
维护者通常 1 天内回复
-
automation missing-model model-sync provider:tinfoil
难度 2/5 1-3 小时 新手友好度 68/100
anomalyco/models.dev#12053 ·
维护者通常 1 天内回复
-
o8 next debug build aborts on Glass to Dark appearance switch (nil identifier messaged before check)未关闭bug
难度 2/5 1-3 小时 新手友好度 78/100
hurttlocker/o8#5112 ·