Put hash/checksum in stack.yaml.lock to prevent manual updating

未关闭
#6,590 4 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
haskell
领域
build-system

调研方向

从 stack.yaml.lock 格式以及读取和验证 lock 文件的 Stack 代码开始;issue 未提供源文件或测试路径。重现锁定 URL 与 sha256 之间的不匹配,然后跟踪 CLI 错误路径。完成标准是 Stack 检测到损坏的 lock 文件并报告错误,而不是静默地继续执行。

由索引模型根据 Issue 内容生成。

描述

component: build component: configuration component: pantry type: discuss
General summary/comments (optional)

We accidentally mangled our lock file when doing a global search/replace of a git hash.

The lock file ended up in a state where the URL didn't match the sha256, but it didn't result in any errors from stack.

Steps to reproduce

Mangle lock file.

Expected

I want stack to error next time it read the lock file, and tell me the lock file is corrupted.

Actual

No error

Stack version
stack --version
Version 2.15.7, Git revision f590e0165b5ab92f5f7f87f8aa55852e1972ee25 x86_64 hpack-0.36.0
Method of installation
  • Via GHCup
Platform

Debian Bookworm

主要语言
Haskell
星标
4.1k
派生
857
平均合并
17 小时 32 分钟
30 天内合并 PR
5

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

commercialhaskell/stack 的其他 Issue

查看 commercialhaskell/stack 的全部 Issue

相似的 Issue

更多 Haskell Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。