[Bug Report] Getting "There were stale violations found, please run `packwerk update-todo`" even there is no stale violations
评估
调研方向
使用 packwerk update-todo 和 packwerk check path/to/the/first_file.rb,在多个文件中存在相同违规的情况下复现该问题。将 Packwerk 3.0.1 和 3.1.0 的行为进行比较,然后验证目标检查返回状态 0,且没有 stale-violation 输出。
由索引模型根据 Issue 内容生成。
描述
Description
I'm getting "There were stale violations found, please run packwerk update-todo" when I run check command againts some files.
For this you have to have one violation in several files.
For example:
# This file contains a list of dependencies that are not part of the long term plan for the
# 'packs/one' package.
# We should generally work to reduce this list over time.
#
# You can regenerate this file using the following command:
#
# bin/packwerk update-todo
---
".":
"::ApplicationController":
violations:
- dependency
files:
- packs/one/bar.rb
- packs/one/baz.rb
To Reproduce
- Create a dependency violation in the first file.
- Create the same dependency violation in another file within the same package.
- Run
packwerk update-todoin order to generate package_todo.yml file. - Run
packwerk check path/to/the/first_file.rb.
Actual Behaviour
- Command returns
1status. - Command output contains info about stale violations.
📦 Finished in X.XX seconds
No offenses detected
There were stale violations found, please run `packwerk update-todo`
Expected Behaviour
- Command returns
0status - Command output has no info about stale violations
Version Information
- Packwerk: 3.1.0
- Ruby: 3.2.1
Additional Context
3.0.1 has no this problem
- 主要语言
- Ruby
- 星标
- 1.9k
- 派生
- 123
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Shopify/packwerk 的其他 Issue
-
[Bug Report] Concurrent runs sharing a cold cache fail with JSON::ParserError可能已有人在做 @sarankumar1325 于 3 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 85/100
-
难度 5/5 一周以上 新手友好度 30/100
-
bug
难度 4/5 3-5 天 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 35/100
-
bug
难度 4/5 3-5 天 新手友好度 28/100
相似的 Issue
-
area: devops area: integration help wanted lane: free-agent roadmap size: S type: fixture
难度 2/5 1-3 小时 新手友好度 87/100
arminazimi/evergreen#1505 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
waiting-intake
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 1/5 1 小时以内 新手友好度 67/100
WITCodingClub/calendar-backend#908 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 83/100
维护者通常 1 天内回复