fix(ext): pack 期望集对齐 .gitignore 过滤后的跟踪集 - #481
Merged
Merged
Conversation
…d set T6(容器 .gitignore 排除 test//bin/)与 T15(pack 期望集=ls-files 全量)的组合缺陷, 集成后才暴露:宿主 ext pack 尊重容器 .gitignore 排除开发面文件,而期望集未排除, 清单全等比对恒败、产物被误删。 - 期望集与 stage 同源:ls-files 减 .gitignore 规则命中项 - check-ignore 须 --no-index:对已跟踪文件恒答「不忽略」,纯规则判定才有效 - 实测:manifest OK 28 files,ext verify 全单元 OK,zip≡跟踪集(无 test/bin/.pyc)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
干净 checkout 跑 bin/pack(发布前 checklist 第 2 步)发现:T6(容器 .gitignore 排除 test/、bin/)与 T15(pack manifest 全等校验)的组合缺陷——宿主 ext pack 尊重容器 .gitignore 不打包 test/bin,而期望集=git ls-files 全量,恒不相等 → 产物被误删、发布阻断。
修复
验证